class_docstr: Configuration class.
  
  This class is responsible for loading, saving, and storing PennyLane
  and plugin/device configurations.
  
  Args:
      name (str): filename of the configuration file.
          This should be a valid TOML file. You may also pass an absolute
          or a relative file path to the configuration file.
code: def __init__(self, name):
      # Look for an existing configuration file
      self._config = {}
      self._filepath = None
      self._name = name
      self._user_config_dir = user_config_dir("pennylane", "Xanadu")
      self._env_config_dir = os.environ.get("PENNYLANE_CONF", "")
  
      # search the current directory the directory under environment
      # variable PENNYLANE_CONF, and default user config directory, in that order.
      directories = [
          os.curdir,
          self._env_config_dir,
          self._user_config_dir,
          "",
      ]
      for directory in directories:
          with contextlib.suppress(FileNotFoundError):
              self._filepath = os.path.join(directory, self._name)
              self.load(self._filepath)
              break
  
file_path: pennylane/pennylane/configuration.py
imports: import contextlib
  import os
  import toml
  from appdirs import user_config_dir
label_desc: Use image node_id 1 to create a new Configuration object  with example: obj = Configuration(name)