code: 
  '''simple docstring'''
  import textwrap
  
  import pyarrow as pa
  import pytest
  
  from datasets import Features, Value
  from datasets.packaged_modules.json.json import Json
  
  
  
  
  @pytest.fixture
  def       _UpperCamelCase	(					SCREAMING_SNAKE_CASE__ )     ->       List[str]:
  
  
  		'''simple docstring'''
  
  
  		snake_case     :					str     =	tmp_path / '''file.jsonl'''
  		snake_case     :					List[Any]     =	textwrap.dedent(
  		    '''\
          {"col_1": -1}
          {"col_1": 1, "col_2": 2}
          {"col_1": 10, "col_2": 20}
          ''' )
  		with open(SCREAMING_SNAKE_CASE__   ,					'''w''' ) as f:
  				f.write(SCREAMING_SNAKE_CASE__ )
  		return str(SCREAMING_SNAKE_CASE__ )
  
  
  
  
  @pytest.fixture
  def       _UpperCamelCase	(					SCREAMING_SNAKE_CASE__ )     ->       Tuple:
  
  
  		'''simple docstring'''
  
  
  		snake_case     :					Any     =	tmp_path / '''file_utf16_encoded.jsonl'''
  		snake_case     :					Dict     =	textwrap.dedent(
  		    '''\
          {"col_1": -1}
          {"col_1": 1, "col_2": 2}
          {"col_1": 10, "col_2": 20}
          ''' )
  		with open(SCREAMING_SNAKE_CASE__   ,					'''w'''   ,					encoding='''utf-16''' ) as f:
  				f.write(SCREAMING_SNAKE_CASE__ )
  		return str(SCREAMING_SNAKE_CASE__ )
  
  
  
  
  @pytest.fixture
  def       _UpperCamelCase	(					SCREAMING_SNAKE_CASE__ )     ->       int:
  
  
  		'''simple docstring'''
  
  
  		snake_case     :					Dict     =	tmp_path / '''file_with_list_of_dicts.json'''
  		snake_case     :					str     =	textwrap.dedent(
  		    '''\
          [
              {"col_1": -1},
              {"col_1": 1, "col_2": 2},
              {"col_1": 10, "col_2": 20}
          ]
          ''' )
  		with open(SCREAMING_SNAKE_CASE__   ,					'''w''' ) as f:
  				f.write(SCREAMING_SNAKE_CASE__ )
  		return str(SCREAMING_SNAKE_CASE__ )
  
  
  
  
  @pytest.fixture
  def       _UpperCamelCase	(					SCREAMING_SNAKE_CASE__ )     ->       Union[str, Any]:
  
  
  		'''simple docstring'''
  
  
  		snake_case     :					Any     =	tmp_path / '''file_with_list_of_dicts_field.json'''
  		snake_case     :					Optional[Any]     =	textwrap.dedent(
  		    '''\
          {
              "field1": 1,
              "field2": "aabb",
              "field3": [
                  {"col_1": -1},
                  {"col_1": 1, "col_2": 2},
                  {"col_1": 10, "col_2": 20}
              ]
          }
          ''' )
  		with open(SCREAMING_SNAKE_CASE__   ,					'''w''' ) as f:
  				f.write(SCREAMING_SNAKE_CASE__ )
  		return str(SCREAMING_SNAKE_CASE__ )
  
  
  
  
  @pytest.mark.parametrize(
      '''file_fixture, config_kwargs'''   ,					[
          ('''jsonl_file''', {}),
          ('''jsonl_file_utf16_encoded''', {'''encoding''': '''utf-16'''}),
          ('''json_file_with_list_of_dicts''', {}),
          ('''json_file_with_list_of_dicts_field''', {'''field''': '''field3'''}),
      ]   ,					)
  def       _UpperCamelCase	(					SCREAMING_SNAKE_CASE__   ,					SCREAMING_SNAKE_CASE__   ,					SCREAMING_SNAKE_CASE__ )     ->       Any:
  
  
  		'''simple docstring'''
  
  
  		snake_case     :					List[Any]     =	Json(**SCREAMING_SNAKE_CASE__ )
  		snake_case     :					Union[str, Any]     =	json._generate_tables([[request.getfixturevalue(SCREAMING_SNAKE_CASE__ )]] )
  		snake_case     :					Any     =	pa.concat_tables([table for _, table in generator] )
  		assert pa_table.to_pydict() == {"col_1": [-1, 1, 10], "col_2": [None, 2, 20]}
  
  
  
  
  @pytest.mark.parametrize(
      '''file_fixture, config_kwargs'''   ,					[
          (
              '''jsonl_file''',
              {'''features''': Features({'''col_1''': Value('''int64''' ), '''col_2''': Value('''int64''' ), '''missing_col''': Value('''string''' )} )},
          ),
          (
              '''json_file_with_list_of_dicts''',
              {'''features''': Features({'''col_1''': Value('''int64''' ), '''col_2''': Value('''int64''' ), '''missing_col''': Value('''string''' )} )},
          ),
          (
              '''json_file_with_list_of_dicts_field''',
              {
                  '''field''': '''field3''',
                  '''features''': Features(
                      {'''col_1''': Value('''int64''' ), '''col_2''': Value('''int64''' ), '''missing_col''': Value('''string''' )} ),
              },
          ),
      ]   ,					)
  def       _UpperCamelCase	(					SCREAMING_SNAKE_CASE__   ,					SCREAMING_SNAKE_CASE__   ,					SCREAMING_SNAKE_CASE__ )     ->       Dict:
  
  
  		'''simple docstring'''
  
  
  		snake_case     :					Tuple     =	Json(**SCREAMING_SNAKE_CASE__ )
  		snake_case     :					Union[str, Any]     =	json._generate_tables([[request.getfixturevalue(SCREAMING_SNAKE_CASE__ )]] )
  		snake_case     :					int     =	pa.concat_tables([table for _, table in generator] )
  		assert pa_table.to_pydict() == {"col_1": [-1, 1, 10], "col_2": [None, 2, 20], "missing_col": [None, None, None]}
  
  
  
style_context: 
  '''simple docstring'''
  def       _UpperCamelCase	(					)     ->       int:
  
  
  		'''simple docstring'''
  
  
  		for a in range(300 ):
  				for b in range(a + 1   ,					400 ):
  						for c in range(b + 1   ,					500 ):
  								if (a + b + c) == 1000 and (a**2) + (b**2) == (c**2):
  										return a * b * c
  
  		return -1
  
  
  
  
  def       _UpperCamelCase	(					)     ->       int:
  
  
  		'''simple docstring'''
  
  
  		for a in range(300 ):
  				for b in range(400 ):
  						snake_case     :					Dict     =	1000 - a - b
  						if a < b < c and (a**2) + (b**2) == (c**2):
  								return a * b * c
  
  		return -1
  
  
  
  
  def       _UpperCamelCase	(					)     ->       None:
  
  
  		'''simple docstring'''
  
  
  		import timeit
  
  		print(
  		    timeit.timeit('''solution()'''   ,					setup='''from __main__ import solution'''   ,					number=1000 ) )
  		print(
  		    timeit.timeit(
  		        '''solution_fast()'''   ,					setup='''from __main__ import solution_fast'''   ,					number=1000 ) )
  
  
  if __name__ == "__main__":
  						print(f"{solution() = }")
  
  
  