code: def load(f, _dict=dict, decoder=None):
      """Parses named file or files as toml and returns a dictionary
  
      Args:
          f: Path to the file to open, array of files to read into single dict
             or a file descriptor
          _dict: (optional) Specifies the class of the returned toml dictionary
          decoder: The decoder to use
  
      Returns:
          Parsed toml file represented as a dictionary
  
      Raises:
          TypeError -- When f is invalid type
          TomlDecodeError: Error while decoding toml
          IOError / FileNotFoundError -- When an array with no valid (existing)
          (Python 2 / Python 3)          file paths is passed
      """
  
      if _ispath(f):
          with io.open(_getpath(f), encoding="utf-8") as ffile:
              return loads(ffile.read(), _dict, decoder)
      elif isinstance(f, list):
          from os import path as op
          from warnings import warn
  
          if not [path for path in f if op.exists(path)]:
              error_msg = (
                  "Load expects a list to contain filenames only."
              )
              error_msg += linesep
              error_msg += (
                  "The list needs to contain the path of at least one "
                  "existing file."
              )
              raise FNFError(error_msg)
          if decoder is None:
              decoder = TomlDecoder(_dict)
          d = decoder.get_empty_table()
          for l in f:  # noqa: E741
              if op.exists(l):
                  d.update(load(l, _dict, decoder))
              else:
                  warn(
                      "Non-existent filename in list with at least one valid "
                      "filename"
                  )
          return d
      else:
          try:
              return loads(f.read(), _dict, decoder)
          except AttributeError:
              raise TypeError(
                  "You can only load a file descriptor, filename or "
                  "list"
              )
  
imports: import datetime
  import io
  from os import linesep
  import re
  import sys
  from toml.tz import TomlTz
label_desc: Use image node_id 5 for calling a global function with example usage: load(f, _dict, decoder) and returns: loads, d, loads