A   :     Optional[int]       =				9.8_06_65


def    a__       (						__UpperCamelCase   ,					__UpperCamelCase   ,					__UpperCamelCase = g ):

      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 ...processing_utils import ProcessorMixin


class      lowerCamelCase    (SCREAMING_SNAKE_CASE__    ):
  """simple docstring"""







  lowerCamelCase__   =  ['''image_processor''', '''feature_extractor''']
  lowerCamelCase__   =  '''TvltImageProcessor'''
  lowerCamelCase__   =  '''TvltFeatureExtractor'''







  def __init__(							self       :				List[str]     ,   __magic_name__       :				Any     ,   __magic_name__       :				Any      )     ->		int:
        super().__init__(image_processor=__magic_name__     ,   feature_extractor=__magic_name__      )

        SCREAMING_SNAKE_CASE_      =     image_processor
        SCREAMING_SNAKE_CASE_      =     feature_extractor







  def __call__(							self       :				List[str]     ,   __magic_name__       :				Optional[Any]=None     ,   __magic_name__       :				Union[str, Any]=None     ,   __magic_name__       :				int=None     ,   __magic_name__       :				str=None     ,   __magic_name__       :				Any=False     ,   __magic_name__       :				int=False     ,   *__magic_name__       :				int     ,   **__magic_name__       :				Any     ,   )     ->		List[Any]:

        if images is None and audio is None:
              raise ValueError("You need to specify either an `images` or `audio` input to process."      )

        SCREAMING_SNAKE_CASE_      =     None
        if images is not None:
              SCREAMING_SNAKE_CASE_      =     self.image_processor(__magic_name__     ,   mask_pixel=__magic_name__     ,   *__magic_name__     ,   **__magic_name__      )
        if images_mixed is not None:
              SCREAMING_SNAKE_CASE_      =     self.image_processor(__magic_name__     ,   is_mixed=__magic_name__     ,   *__magic_name__     ,   **__magic_name__      )
        if audio is not None:
              SCREAMING_SNAKE_CASE_      =     self.feature_extractor(
                  __magic_name__     ,   *__magic_name__     ,   sampling_rate=__magic_name__     ,   mask_audio=__magic_name__     ,   **__magic_name__      )

        SCREAMING_SNAKE_CASE_      =     {}
        if audio is not None:
              output_dict.update(__magic_name__      )
        if images is not None:
              output_dict.update(__magic_name__      )
        if images_mixed_dict is not None:
              output_dict.update(__magic_name__      )
        return output_dict







  @property
  def       __A   (							self       :				Optional[Any]      )     ->		int:
        SCREAMING_SNAKE_CASE_      =     self.image_processor.model_input_names
        SCREAMING_SNAKE_CASE_      =     self.feature_extractor.model_input_names
        return list(dict.fromkeys(image_processor_input_names + feature_extractor_input_names      )      )


