code: def test_find_config_searches_upwards(tmp_path):
      subdir = tmp_path.joinpath("d")
      subdir.mkdir()
  
      expected = tmp_path.joinpath("setup.cfg")
      expected.write_text("[flake8]")
  
      assert config._find_config_file(str(subdir)) == str(expected)
  
imports: from __future__ import annotations
  import configparser
  import os.path
  from unittest import mock
  import pytest
  from flake8 import exceptions
  from flake8.main.options import register_default_options
  from flake8.options import config
  from flake8.options.manager import OptionManager
label_desc: Use image node_id 7 for calling a global function with example usage: test_find_config_searches_upwards(tmp_path) without return types