code: def from_dict(d: t.Dict[str, t.Dict[str, t.Any]]):
      frame = {}
      sample = {}
      for k, v in d.items():
          if k.startswith(SampleCollection._FRAMES_PREFIX):
              frame[k[_FRAMES_SLICE:]] = v
          else:
              sample[k] = v
  
      return _from_dict(sample), _from_dict(frame)
  
file_path: fiftyone/fiftyone/server/indexes.py
imports: from enum import Enum
  import typing
  import strawberry
  from fiftyone.core.collections import SampleCollection
label_desc: Use image node_id 1 for calling a global function with example usage: from_dict(d) and returns: _from_dict,  _from_dict