docstr: The `serve` command with auto-reload may pass in a closed file descriptor.
  Ensure `load_config` reloads the closed file.
docstr_tok: ["The","`","serve","`","command","with","auto-reload","may","pass","in","a","closed","file","descriptor",".","Ensure","`","load_config","`","reloads","the","closed","file","."]
code: def test_load_from_closed_file(self, temp_dir):
      """
      The `serve` command with auto-reload may pass in a closed file descriptor.
      Ensure `load_config` reloads the closed file.
      """
      with open(
          os.path.join(temp_dir, "mkdocs.yml"), "w"
      ) as config_file:
          config_file.write("site_name: MkDocs Test\n")
      os.mkdir(os.path.join(temp_dir, "docs"))
  
      cfg = base.load_config(config_file=config_file)
      self.assertTrue(isinstance(cfg, defaults.MkDocsConfig))
      self.assertEqual(cfg.site_name, "MkDocs Test")
  
imports: import os
  import unittest
  from mkdocs import exceptions
  from mkdocs.config import base
  from mkdocs.config import config_options
  from mkdocs.config import defaults
  from mkdocs.config.base import ValidationError
  from mkdocs.tests.base import change_dir, tempdir
label_desc: Use image node_id 9 for calling the ConfigBaseTests obj's underlying member method code with example usage: obj.test_load_from_closed_file(temp_dir) without return types