
UpperCAmelCase__		:     Union[str, Any]     			=      9.8_0665






def   lowerCamelCase__							(					a		,		a		,		a = g      )      ->   float:

   if fluid_density <= 0:
      raise ValueError('''Impossible fluid density'''      )
   if volume < 0:
      raise ValueError('''Impossible Object volume'''      )
   if gravity <= 0:
      raise ValueError('''Impossible Gravity'''      )

   return fluid_density * gravity * volume


if __name__ == "__main__":
   import doctest

   # run doctest
   doctest.testmod()





from .imports import is_tqdm_available


if is_tqdm_available():
   from tqdm.auto import tqdm as _tqdm

from ..state import PartialState






def   lowerCamelCase__							(					a = True		,		*a		,		**a      )      ->   Optional[Any]:
   if not is_tqdm_available():
      raise ImportError('''Accelerate\'s `tqdm` module requires `tqdm` to be installed. Please run `pip install tqdm`.'''      )
   _A:  Optional[Any]					=       False
   if main_process_only:
      _A:  Union[str, Any]					=       PartialState().local_process_index == 0
   return _tqdm(*a		,		**a		,		disable=a      )



