






'''simple docstring'''







import inspect
import tempfile
from collections import OrderedDict, UserDict
from collections.abc import MutableMapping
from contextlib import ExitStack, contextmanager
from dataclasses import fields
from enum import Enum
from typing import Any, ContextManager, List, Tuple

import numpy as np

from .import_utils import is_flax_available, is_tf_available, is_torch_available, is_torch_fx_proxy


if is_flax_available():
		import jax.numpy as jnp





class 	SCREAMING_SNAKE_CASE					(					SCREAMING_SNAKE_CASE_       ):






			def __get__( self      :			Union[str, Any]  ,						__SCREAMING_SNAKE_CASE      :			Tuple  ,						__SCREAMING_SNAKE_CASE      :			Dict=None					)			->			Dict:
							# See docs.python.org/3/howto/descriptor.html#properties
							if obj is None:
											return self
							if self.fget is None:
											raise AttributeError('''unreadable attribute'''					)
							a_		:  str											=      '''__cached_''' + self.fget.__name__
							a_		:  Optional[Any]											=      getattr(__SCREAMING_SNAKE_CASE  ,						__SCREAMING_SNAKE_CASE  ,						__SCREAMING_SNAKE_CASE					)
							if cached is None:
											a_		:  List[Any]											=      self.fget(__SCREAMING_SNAKE_CASE					)
											setattr(__SCREAMING_SNAKE_CASE  ,						__SCREAMING_SNAKE_CASE  ,						__SCREAMING_SNAKE_CASE					)
							return cached





def 		_UpperCAmelCase   (							__A							:   Any      ):
				a_		:  Union[str, Any]											=      val.lower()
				if val in {"y", "yes", "t", "true", "on", "1"}:
								return 1
				if val in {"n", "no", "f", "false", "off", "0"}:
								return 0
				raise ValueError(f'invalid truth value {val!r}'      )





def 		_UpperCAmelCase   (							__A							:   List[Any]      ):
				if is_torch_fx_proxy(__A      ):
								return True
				if is_torch_available():
								import torch

								if isinstance(__A						,		torch.Tensor      ):
												return True
				if is_tf_available():
								import tensorflow as tf

								if isinstance(__A						,		tf.Tensor      ):
												return True

				if is_flax_available():
								import jax.numpy as jnp
								from jax.core import Tracer

								if isinstance(__A						,		(jnp.ndarray, Tracer)      ):
												return True

				return isinstance(__A						,		np.ndarray      )





def 		_UpperCAmelCase   (							__A							:   Any      ):
				return isinstance(__A						,		np.ndarray      )





def 		_UpperCAmelCase   (							__A							:   Tuple      ):
				return _is_numpy(__A      )





def 		_UpperCAmelCase   (							__A							:   Tuple      ):
				import torch

				return isinstance(__A						,		torch.Tensor      )





def 		_UpperCAmelCase   (							__A							:   Tuple      ):
				return False if not is_torch_available() else _is_torch(__A      )





def 		_UpperCAmelCase   (							__A							:   List[Any]      ):
				import torch

				return isinstance(__A						,		torch.device      )





def 		_UpperCAmelCase   (							__A							:   Optional[int]      ):
				return False if not is_torch_available() else _is_torch_device(__A      )





def 		_UpperCAmelCase   (							__A							:   int      ):
				import torch

				if isinstance(__A						,		__A      ):
								if hasattr(__A						,		__A      ):
												a_		:  Any											=      getattr(__A						,		__A      )
								else:
												return False
				return isinstance(__A						,		torch.dtype      )





def 		_UpperCAmelCase   (							__A							:   str      ):
				return False if not is_torch_available() else _is_torch_dtype(__A      )





def 		_UpperCAmelCase   (							__A							:   List[Any]      ):
				import tensorflow as tf

				return isinstance(__A						,		tf.Tensor      )





def 		_UpperCAmelCase   (							__A							:   Optional[Any]      ):
				return False if not is_tf_available() else _is_tensorflow(__A      )





def 		_UpperCAmelCase   (							__A							:   int      ):
				import tensorflow as tf

				# the `is_symbolic_tensor` predicate is only available starting with TF 2.14
				if hasattr(__A						,		'''is_symbolic_tensor'''      ):
								return tf.is_symbolic_tensor(__A      )
				return type(__A      ) == tf.Tensor





def 		_UpperCAmelCase   (							__A							:   Dict      ):
				return False if not is_tf_available() else _is_tf_symbolic_tensor(__A      )





def 		_UpperCAmelCase   (							__A							:   Optional[Any]      ):
				import jax.numpy as jnp  # noqa: F811

				return isinstance(__A						,		jnp.ndarray      )





def 		_UpperCAmelCase   (							__A							:   Optional[int]      ):
				return False if not is_flax_available() else _is_jax(__A      )





def 		_UpperCAmelCase   (							__A							:   List[str]      ):
				if isinstance(__A						,		(dict, UserDict)      ):
								return {k: to_py_obj(__A      ) for k, v in obj.items()}
				elif isinstance(__A						,		(list, tuple)      ):
								return [to_py_obj(__A      ) for o in obj]
				elif is_tf_tensor(__A      ):
								return obj.numpy().tolist()
				elif is_torch_tensor(__A      ):
								return obj.detach().cpu().tolist()
				elif is_jax_tensor(__A      ):
								return np.asarray(__A      ).tolist()
				elif isinstance(__A						,		(np.ndarray, np.number)      ):  # tolist also works on 0d np arrays
								return obj.tolist()
				else:
								return obj





def 		_UpperCAmelCase   (							__A							:   Dict      ):
				if isinstance(__A						,		(dict, UserDict)      ):
								return {k: to_numpy(__A      ) for k, v in obj.items()}
				elif isinstance(__A						,		(list, tuple)      ):
								return np.array(__A      )
				elif is_tf_tensor(__A      ):
								return obj.numpy()
				elif is_torch_tensor(__A      ):
								return obj.detach().cpu().numpy()
				elif is_jax_tensor(__A      ):
								return np.asarray(__A      )
				else:
								return obj





class 	SCREAMING_SNAKE_CASE					(					SCREAMING_SNAKE_CASE_       ):






			def 			SCREAMING_SNAKE_CASE      ( self      :			Optional[Any]					)			->			Union[str, Any]:
							a_		:  Dict											=      fields(self					)

							# Safety and consistency checks
							if not len(__SCREAMING_SNAKE_CASE					):
											raise ValueError(f'{self.__class__.__name__} has no fields.'					)
							if not all(field.default is None for field in class_fields[1:]					):
											raise ValueError(f'{self.__class__.__name__} should not have more than one required field.'					)

							a_		:  List[str]											=      getattr(self  ,						class_fields[0].name					)
							a_		:  Union[str, Any]											=      all(getattr(self  ,						field.name					) is None for field in class_fields[1:]					)

							if other_fields_are_none and not is_tensor(__SCREAMING_SNAKE_CASE					):
											if isinstance(__SCREAMING_SNAKE_CASE  ,						__SCREAMING_SNAKE_CASE					):
															a_		:  Any											=      first_field.items()
															a_		:  int											=      True
											else:
															try:
																			a_		:  str											=      iter(__SCREAMING_SNAKE_CASE					)
																			a_		:  Union[str, Any]											=      True
															except TypeError:
																			a_		:  Optional[Any]											=      False

            # if we provided an iterator as first field and the iterator is a (key, value) iterator
            # set the associated fields
											if first_field_iterator:
															for idx, element in enumerate(__SCREAMING_SNAKE_CASE					):
																			if (
																			    not isinstance(__SCREAMING_SNAKE_CASE  ,						(list, tuple)					)
																			    or not len(__SCREAMING_SNAKE_CASE					) == 2
																			    or not isinstance(element[0]  ,						__SCREAMING_SNAKE_CASE					)
																			):
																							if idx == 0:
																											# If we do not have an iterator of key/values, set it as attribute
																											a_		:  List[Any]											=      first_field
																							else:
																											# If we have a mixed iterator, raise an error
																											raise ValueError(
																											    f'Cannot set key/value for {element}. It needs to be a tuple (key, value).'					)
																							break
																			setattr(self  ,						element[0]  ,						element[1]					)
																			if element[1] is not None:
																							a_		:  Optional[int]											=      element[1]
											elif first_field is not None:
															a_		:  Any											=      first_field
							else:
											for field in class_fields:
															a_		:  Optional[int]											=      getattr(self  ,						field.name					)
															if v is not None:
																			a_		:  Any											=      v






			def __delitem__( self      :			Any  ,						*__SCREAMING_SNAKE_CASE      :			Optional[int]  ,						**__SCREAMING_SNAKE_CASE      :			Union[str, Any]					)			->			List[str]:
							raise Exception(f'You cannot use ``__delitem__`` on a {self.__class__.__name__} instance.'					)






			def 			SCREAMING_SNAKE_CASE      ( self      :			List[Any]  ,						*__SCREAMING_SNAKE_CASE      :			Optional[int]  ,						**__SCREAMING_SNAKE_CASE      :			Any					)			->			Optional[Any]:
							raise Exception(f'You cannot use ``setdefault`` on a {self.__class__.__name__} instance.'					)






			def 			SCREAMING_SNAKE_CASE      ( self      :			List[str]  ,						*__SCREAMING_SNAKE_CASE      :			Any  ,						**__SCREAMING_SNAKE_CASE      :			List[Any]					)			->			List[Any]:
							raise Exception(f'You cannot use ``pop`` on a {self.__class__.__name__} instance.'					)






			def 			SCREAMING_SNAKE_CASE      ( self      :			Any  ,						*__SCREAMING_SNAKE_CASE      :			Optional[int]  ,						**__SCREAMING_SNAKE_CASE      :			Tuple					)			->			Optional[int]:
							raise Exception(f'You cannot use ``update`` on a {self.__class__.__name__} instance.'					)






			def __getitem__( self      :			Tuple  ,						__SCREAMING_SNAKE_CASE      :			Dict					)			->			Optional[int]:
							if isinstance(__SCREAMING_SNAKE_CASE  ,						__SCREAMING_SNAKE_CASE					):
											a_		:  Optional[int]											=      dict(self.items()					)
											return inner_dict[k]
							else:
											return self.to_tuple()[k]






			def __setattr__( self      :			Optional[int]  ,						__SCREAMING_SNAKE_CASE      :			List[Any]  ,						__SCREAMING_SNAKE_CASE      :			Tuple					)			->			Optional[Any]:
							if name in self.keys() and value is not None:
											# Don't call self.__setitem__ to avoid recursion errors
											super().__setitem__(__SCREAMING_SNAKE_CASE  ,						__SCREAMING_SNAKE_CASE					)
							super().__setattr__(__SCREAMING_SNAKE_CASE  ,						__SCREAMING_SNAKE_CASE					)






			def __setitem__( self      :			Any  ,						__SCREAMING_SNAKE_CASE      :			Any  ,						__SCREAMING_SNAKE_CASE      :			Any					)			->			str:
							# Will raise a KeyException if needed
							super().__setitem__(__SCREAMING_SNAKE_CASE  ,						__SCREAMING_SNAKE_CASE					)
							# Don't call self.__setattr__ to avoid recursion errors
							super().__setattr__(__SCREAMING_SNAKE_CASE  ,						__SCREAMING_SNAKE_CASE					)







			def 			SCREAMING_SNAKE_CASE      ( self      :			Tuple					)			->			Tuple[Any]:
							return tuple(self[k] for k in self.keys()					)





class 	SCREAMING_SNAKE_CASE					(					SCREAMING_SNAKE_CASE_	,   SCREAMING_SNAKE_CASE_       ):






			@classmethod
			def 			SCREAMING_SNAKE_CASE      ( cls      :			Optional[int]  ,						__SCREAMING_SNAKE_CASE      :			Dict					)			->			Any:
							raise ValueError(
							    f'{value} is not a valid {cls.__name__}, please select one of {list(cls._valueamember_map_.keys()					)}'					)





class 	SCREAMING_SNAKE_CASE					(					SCREAMING_SNAKE_CASE_       ):
			snake_case__  =				"longest"
			snake_case__  =				"max_length"
			snake_case__  =				"do_not_pad"





class 	SCREAMING_SNAKE_CASE					(					SCREAMING_SNAKE_CASE_       ):
			snake_case__  =				"pt"
			snake_case__  =				"tf"
			snake_case__  =				"np"
			snake_case__  =				"jax"





class 	SCREAMING_SNAKE_CASE					:






			def __init__( self      :			List[Any]  ,						__SCREAMING_SNAKE_CASE      :			List[ContextManager]					)			->			Any:
							a_		:  List[Any]											=      context_managers
							a_		:  str											=      ExitStack()






			def __enter__( self      :			str					)			->			int:
							for context_manager in self.context_managers:
											self.stack.enter_context(__SCREAMING_SNAKE_CASE					)







			def __exit__( self      :			Union[str, Any]  ,						*__SCREAMING_SNAKE_CASE      :			Tuple  ,						**__SCREAMING_SNAKE_CASE      :			Tuple					)			->			Any:
							self.stack.__exit__(*__SCREAMING_SNAKE_CASE  ,						**__SCREAMING_SNAKE_CASE					)





def 		_UpperCAmelCase   (							__A							:   Optional[int]      ):
				a_		:  int											=      infer_framework(__A      )
				if framework == "tf":
								a_		:  Optional[Any]											=      inspect.signature(model_class.call      )  # TensorFlow models
				elif framework == "pt":
								a_		:  List[str]											=      inspect.signature(model_class.forward      )  # PyTorch models
				else:
								a_		:  str											=      inspect.signature(model_class.__call__      )  # Flax models

				for p in signature.parameters:
								if p == "return_loss" and signature.parameters[p].default is True:
												return True

				return False





def 		_UpperCAmelCase   (							__A							:   Optional[int]      ):
				a_		:  List[str]											=      model_class.__name__
				a_		:  Optional[int]											=      infer_framework(__A      )
				if framework == "tf":
								a_		:  List[Any]											=      inspect.signature(model_class.call      )  # TensorFlow models
				elif framework == "pt":
								a_		:  int											=      inspect.signature(model_class.forward      )  # PyTorch models
				else:
								a_		:  List[Any]											=      inspect.signature(model_class.__call__      )  # Flax models

				if "QuestionAnswering" in model_name:
								return [p for p in signature.parameters if "label" in p or p in ("start_positions", "end_positions")]
				else:
								return [p for p in signature.parameters if "label" in p]





def 		_UpperCAmelCase   (							__A							:   MutableMapping						,		__A							:   str = ""						,		__A							:   str = "."      ):

				def _flatten_dict(__A							:   List[str]						,		__A							:   List[Any]=""						,		__A							:   List[str]="."      ):
								for k, v in d.items():
												a_		:  Optional[Any]											=      str(__A      ) + delimiter + str(__A      ) if parent_key else k
												if v and isinstance(__A						,		__A      ):
																yield from flatten_dict(__A						,		__A						,		delimiter=__A      ).items()
												else:
																yield key, v

				return dict(_flatten_dict(__A						,		__A						,		__A      )      )





@contextmanager
def 		_UpperCAmelCase   (							__A							:   Dict						,		__A							:   bool = False      ):
				if use_temp_dir:
								with tempfile.TemporaryDirectory() as tmp_dir:
												yield tmp_dir
				else:
								yield working_dir





def 		_UpperCAmelCase   (							__A							:   Union[str, Any]						,		__A							:   Tuple=None      ):
				if is_numpy_array(__A      ):
								return np.transpose(__A						,		axes=__A      )
				elif is_torch_tensor(__A      ):
								return array.T if axes is None else array.permute(*__A      )
				elif is_tf_tensor(__A      ):
								import tensorflow as tf

								return tf.transpose(__A						,		perm=__A      )
				elif is_jax_tensor(__A      ):
								return jnp.transpose(__A						,		axes=__A      )
				else:
								raise ValueError(f'Type not supported for transpose: {type(__A      )}.'      )





def 		_UpperCAmelCase   (							__A							:   List[Any]						,		__A							:   Optional[Any]      ):
				if is_numpy_array(__A      ):
								return np.reshape(__A						,		__A      )
				elif is_torch_tensor(__A      ):
								return array.reshape(*__A      )
				elif is_tf_tensor(__A      ):
								import tensorflow as tf

								return tf.reshape(__A						,		__A      )
				elif is_jax_tensor(__A      ):
								return jnp.reshape(__A						,		__A      )
				else:
								raise ValueError(f'Type not supported for reshape: {type(__A      )}.'      )





def 		_UpperCAmelCase   (							__A							:   Optional[Any]						,		__A							:   Union[str, Any]=None      ):
				if is_numpy_array(__A      ):
								return np.squeeze(__A						,		axis=__A      )
				elif is_torch_tensor(__A      ):
								return array.squeeze() if axis is None else array.squeeze(dim=__A      )
				elif is_tf_tensor(__A      ):
								import tensorflow as tf

								return tf.squeeze(__A						,		axis=__A      )
				elif is_jax_tensor(__A      ):
								return jnp.squeeze(__A						,		axis=__A      )
				else:
								raise ValueError(f'Type not supported for squeeze: {type(__A      )}.'      )





def 		_UpperCAmelCase   (							__A							:   List[Any]						,		__A							:   List[str]      ):
				if is_numpy_array(__A      ):
								return np.expand_dims(__A						,		__A      )
				elif is_torch_tensor(__A      ):
								return array.unsqueeze(dim=__A      )
				elif is_tf_tensor(__A      ):
								import tensorflow as tf

								return tf.expand_dims(__A						,		axis=__A      )
				elif is_jax_tensor(__A      ):
								return jnp.expand_dims(__A						,		axis=__A      )
				else:
								raise ValueError(f'Type not supported for expand_dims: {type(__A      )}.'      )





def 		_UpperCAmelCase   (							__A							:   Tuple      ):
				if is_numpy_array(__A      ):
								return np.size(__A      )
				elif is_torch_tensor(__A      ):
								return array.numel()
				elif is_tf_tensor(__A      ):
								import tensorflow as tf

								return tf.size(__A      )
				elif is_jax_tensor(__A      ):
								return array.size
				else:
								raise ValueError(f'Type not supported for expand_dims: {type(__A      )}.'      )





def 		_UpperCAmelCase   (							__A							:   Tuple						,		__A							:   str      ):
				for key, value in auto_map.items():
								if isinstance(__A						,		(tuple, list)      ):
												a_		:  Union[str, Any]											=      [f'{repo_id}--{v}' if (v is not None and '''--''' not in v) else v for v in value]
								elif value is not None and "--" not in value:
												a_		:  Any											=      f'{repo_id}--{value}'

				return auto_map





def 		_UpperCAmelCase   (							__A							:   Tuple      ):
				for base_class in inspect.getmro(__A      ):
								a_		:  Union[str, Any]											=      base_class.__module__
								a_		:  List[Any]											=      base_class.__name__
								if module.startswith('''tensorflow'''      ) or module.startswith('''keras'''      ) or name == "TFPreTrainedModel":
												return "tf"
								elif module.startswith('''torch'''      ) or name == "PreTrainedModel":
												return "pt"
								elif module.startswith('''flax'''      ) or module.startswith('''jax'''      ) or name == "FlaxPreTrainedModel":
												return "flax"
				else:
								raise TypeError(f'Could not infer framework from class {model_class}.'      )












'''simple docstring'''







from math import pi, sqrt, tan





def 		_UpperCAmelCase   (							__A							:   float      ):
				if side_length < 0:
								raise ValueError('''surface_area_cube() only accepts non-negative values'''      )
				return 6 * side_length**2





def 		_UpperCAmelCase   (							__A							:   float						,		__A							:   float						,		__A							:   float      ):
				if length < 0 or breadth < 0 or height < 0:
								raise ValueError('''surface_area_cuboid() only accepts non-negative values'''      )
				return 2 * ((length * breadth) + (breadth * height) + (length * height))





def 		_UpperCAmelCase   (							__A							:   float      ):
				if radius < 0:
								raise ValueError('''surface_area_sphere() only accepts non-negative values'''      )
				return 4 * pi * radius**2





def 		_UpperCAmelCase   (							__A							:   float      ):
				if radius < 0:
								raise ValueError('''surface_area_hemisphere() only accepts non-negative values'''      )
				return 3 * pi * radius**2





def 		_UpperCAmelCase   (							__A							:   float						,		__A							:   float      ):
				if radius < 0 or height < 0:
								raise ValueError('''surface_area_cone() only accepts non-negative values'''      )
				return pi * radius * (radius + (height**2 + radius**2) ** 0.5)





def 		_UpperCAmelCase   (							__A							:   float						,		__A							:   float						,		__A							:   float      ):
				if radius_a < 0 or radius_a < 0 or height < 0:
								raise ValueError(
								    '''surface_area_conical_frustum() only accepts non-negative values'''      )
				a_		:  Any											=      (height**2 + (radius_a - radius_a) ** 2) ** 0.5
				return pi * ((slant_height * (radius_a + radius_a)) + radius_a**2 + radius_a**2)





def 		_UpperCAmelCase   (							__A							:   float						,		__A							:   float      ):
				if radius < 0 or height < 0:
								raise ValueError('''surface_area_cylinder() only accepts non-negative values'''      )
				return 2 * pi * radius * (height + radius)





def 		_UpperCAmelCase   (							__A							:   float						,		__A							:   float      ):
				if torus_radius < 0 or tube_radius < 0:
								raise ValueError('''surface_area_torus() only accepts non-negative values'''      )
				if torus_radius < tube_radius:
								raise ValueError(
								    '''surface_area_torus() does not support spindle or self intersecting tori'''      )
				return 4 * pow(__A						,		2      ) * torus_radius * tube_radius





def 		_UpperCAmelCase   (							__A							:   float						,		__A							:   float      ):
				if length < 0 or width < 0:
								raise ValueError('''area_rectangle() only accepts non-negative values'''      )
				return length * width





def 		_UpperCAmelCase   (							__A							:   float      ):
				if side_length < 0:
								raise ValueError('''area_square() only accepts non-negative values'''      )
				return side_length**2





def 		_UpperCAmelCase   (							__A							:   float						,		__A							:   float      ):
				if base < 0 or height < 0:
								raise ValueError('''area_triangle() only accepts non-negative values'''      )
				return (base * height) / 2





def 		_UpperCAmelCase   (							__A							:   float						,		__A							:   float						,		__A							:   float      ):
				if sidea < 0 or sidea < 0 or sidea < 0:
								raise ValueError('''area_triangle_three_sides() only accepts non-negative values'''      )
				elif sidea + sidea < sidea or sidea + sidea < sidea or sidea + sidea < sidea:
								raise ValueError('''Given three sides do not form a triangle'''      )
				a_		:  int											=      (sidea + sidea + sidea) / 2
				a_		:  Optional[Any]											=      sqrt(
				    semi_perimeter
				    * (semi_perimeter - sidea)
				    * (semi_perimeter - sidea)
				    * (semi_perimeter - sidea)      )
				return area





def 		_UpperCAmelCase   (							__A							:   float						,		__A							:   float      ):
				if base < 0 or height < 0:
								raise ValueError('''area_parallelogram() only accepts non-negative values'''      )
				return base * height





def 		_UpperCAmelCase   (							__A							:   float						,		__A							:   float						,		__A							:   float      ):
				if basea < 0 or basea < 0 or height < 0:
								raise ValueError('''area_trapezium() only accepts non-negative values'''      )
				return 1 / 2 * (basea + basea) * height





def 		_UpperCAmelCase   (							__A							:   float      ):
				if radius < 0:
								raise ValueError('''area_circle() only accepts non-negative values'''      )
				return pi * radius**2





def 		_UpperCAmelCase   (							__A							:   float						,		__A							:   float      ):
				if radius_x < 0 or radius_y < 0:
								raise ValueError('''area_ellipse() only accepts non-negative values'''      )
				return pi * radius_x * radius_y





def 		_UpperCAmelCase   (							__A							:   float						,		__A							:   float      ):
				if diagonal_a < 0 or diagonal_a < 0:
								raise ValueError('''area_rhombus() only accepts non-negative values'''      )
				return 1 / 2 * diagonal_a * diagonal_a





def 		_UpperCAmelCase   (							__A							:   int						,		__A							:   float      ):
				if not isinstance(__A						,		__A      ) or sides < 3:
								raise ValueError(
								    '''area_reg_polygon() only accepts integers greater than or \
equal to three as number of sides'''      )
				elif length < 0:
								raise ValueError(
								    '''area_reg_polygon() only accepts non-negative values as \
length of a side'''      )
				return (sides * length**2) / (4 * tan(pi / sides      ))
				return (sides * length**2) / (4 * tan(pi / sides      ))


if __name__ == "__main__":
		import doctest

		doctest.testmod(verbose=True)  # verbose so we can see methods missing tests

		print('[DEMO] Areas of various geometric shapes: \n')
		print(F"""Rectangle: {area_rectangle(10, 20) = }""")
		print(F"""Square: {area_square(10) = }""")
		print(F"""Triangle: {area_triangle(10, 10) = }""")
		print(F"""Triangle: {area_triangle_three_sides(5, 12, 13) = }""")
		print(F"""Parallelogram: {area_parallelogram(10, 20) = }""")
		print(F"""Rhombus: {area_rhombus(10, 20) = }""")
		print(F"""Trapezium: {area_trapezium(10, 20, 30) = }""")
		print(F"""Circle: {area_circle(20) = }""")
		print(F"""Ellipse: {area_ellipse(10, 20) = }""")
		print('\nSurface Areas of various geometric shapes: \n')
		print(F"""Cube: {surface_area_cube(20) = }""")
		print(F"""Cuboid: {surface_area_cuboid(10, 20, 30) = }""")
		print(F"""Sphere: {surface_area_sphere(20) = }""")
		print(F"""Hemisphere: {surface_area_hemisphere(20) = }""")
		print(F"""Cone: {surface_area_cone(10, 20) = }""")
		print(F"""Conical Frustum: {surface_area_conical_frustum(10, 20, 30) = }""")
		print(F"""Cylinder: {surface_area_cylinder(10, 20) = }""")
		print(F"""Torus: {surface_area_torus(20, 10) = }""")
		print(F"""Equilateral Triangle: {area_reg_polygon(3, 10) = }""")
		print(F"""Square: {area_reg_polygon(4, 10) = }""")
		print(F"""Reqular Pentagon: {area_reg_polygon(5, 10) = }""")




