code: def test_load_jupytext_configuration_file(tmpdir, config_file):
      full_config_path = tmpdir.join(config_file)
  
      if config_file == "pyproject.toml":
          full_config_path.write(
              """[tool.jupytext]
  formats = "ipynb,py:percent"
  notebook_metadata_filter = "all"
  cell_metadata_filter = "all"
  """
          )
      elif config_file.endswith(("jupytext", ".toml")):
          full_config_path.write(
              """formats = "ipynb,py:percent"
  notebook_metadata_filter = "all"
  cell_metadata_filter = "all"
  """
          )
      elif config_file.endswith(".yml"):
          full_config_path.write(
              """formats: ipynb,py:percent
  notebook_metadata_filter: all
  cell_metadata_filter: all
  """
          )
      elif config_file.endswith(".json"):
          full_config_path.write(
              """{"formats": "ipynb,py:percent",
  "notebook_metadata_filter": "all",
  "cell_metadata_filter": "all"
  }
  """
          )
      elif config_file.endswith(".py"):
          full_config_path.write(
              """c.formats = "ipynb,py:percent"
  c.notebook_metadata_filter = "all"
  c.cell_metadata_filter = "all"
  """
          )
  
      config = load_jupytext_configuration_file(str(full_config_path))
      assert config.formats == "ipynb,py:percent"
      assert config.notebook_metadata_filter == "all"
      assert config.cell_metadata_filter == "all"
  
file_path: jupytext/tests/functional/config/test_config.py
imports: import os
  import pytest
  from jupytext.config import find_jupytext_configuration_file, load_jupytext_configuration_file
label_desc: Use image node_id 3 for calling a global function with example usage: test_load_jupytext_configuration_file(tmpdir, config_file) without return types