
_SCREAMING_SNAKE_CASE    :      List[str]          =			8.31_4462  # Unit - J mol-1 K-1

def 				SCREAMING_SNAKE_CASE     (      __UpperCamelCase :						float							,						__UpperCamelCase :						float							,						__UpperCamelCase :						float       ) ->       float:

				"""simple docstring"""







				if moles < 0 or kelvin < 0 or volume < 0:
								raise ValueError('''Invalid inputs. Enter positive value.'''       )
				return moles * kelvin * UNIVERSAL_GAS_CONSTANT / volume

def 				SCREAMING_SNAKE_CASE     (      __UpperCamelCase :						float							,						__UpperCamelCase :						float							,						__UpperCamelCase :						float       ) ->       float:

				"""simple docstring"""







				if moles < 0 or kelvin < 0 or pressure < 0:
								raise ValueError('''Invalid inputs. Enter positive value.'''       )
				return moles * kelvin * UNIVERSAL_GAS_CONSTANT / pressure


if __name__ == "__main__":
					from doctest import testmod

					testmod()

import json
import os
import tempfile

from transformers.testing_utils import check_json_file_has_correct_format







class  UpperCamelCase__		:







	'''simple docstring'''
	_lowerCAmelCase							       =				None





	def   __snake_case				(			self		):
					A__  :	Dict         =							self.feature_extraction_class(**self.feat_extract_dict		)
					A__  :	Tuple         =							json.loads(feat_extract.to_json_string()		)
					for key, value in self.feat_extract_dict.items():
									self.assertEqual(obj[key]				,       UpperCamelCase__		)





	def   __snake_case				(			self		):
					A__  :	Any         =							self.feature_extraction_class(**self.feat_extract_dict		)

					with tempfile.TemporaryDirectory() as tmpdirname:
									A__  :	Any         =							os.path.join(UpperCamelCase__				,       '''feat_extract.json'''		)
									feat_extract_first.to_json_file(UpperCamelCase__		)
									A__  :	Dict         =							self.feature_extraction_class.from_json_file(UpperCamelCase__		)

					self.assertEqual(feat_extract_second.to_dict()				,       feat_extract_first.to_dict()		)





	def   __snake_case				(			self		):
					A__  :	Any         =							self.feature_extraction_class(**self.feat_extract_dict		)

					with tempfile.TemporaryDirectory() as tmpdirname:
									A__  :	Any         =							feat_extract_first.save_pretrained(UpperCamelCase__		)[0]
									check_json_file_has_correct_format(UpperCamelCase__		)
									A__  :	Optional[int]         =							self.feature_extraction_class.from_pretrained(UpperCamelCase__		)

					self.assertEqual(feat_extract_second.to_dict()				,       feat_extract_first.to_dict()		)





	def   __snake_case				(			self		):
					A__  :	str         =							self.feature_extraction_class()
					self.assertIsNotNone(UpperCamelCase__		)