docstr: Users can explicitly set the config file using the '--config' option.
  Allows users to specify a config other than the default `mkdocs.yml`.
docstr_tok: ["Users","can","explicitly","set","the","config","file","using","the","'","--","config","'","option",".","Allows","users","to","specify","a","config","other","than","the","default","`","mkdocs.yml","`","."]
code: def test_load_from_file(self, temp_dir):
      """
      Users can explicitly set the config file using the '--config' option.
      Allows users to specify a config other than the default `mkdocs.yml`.
      """
      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.name)
      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 3 for calling the ConfigBaseTests obj's underlying member method code with example usage: obj.test_load_from_file(temp_dir) without return types