code: def from_dict(data_class: t.Type[T], data: Data) -> T:
      """Wrapping function for ``dacite.from_dict`` that ensures a common
      configuration is used.
  
      Args:
          data_class: a dataclass
          data: the data with which to instantiate the dataclass instance
  
      Returns:
          a dataclass instance
      """
      return _from_dict(data_class, data, config=_dacite_config)
  
file_path: fiftyone/fiftyone/server/utils.py
imports: import typing
  import cachetools
  from dacite import Config, from_dict
  from dacite.core import T
  from dacite.data import Data
  import fiftyone.core.collections
  import fiftyone.core.dataset
  import fiftyone.core.fields
  import fiftyone.core.labels
  import fiftyone.core.media
label_desc: Use image node_id 4 for calling a global function with example usage: from_dict(data_class, data) and returns: _from_dict