code: def _deep_get(sample, keys, default=None):
      """
      Get a value from a nested dictionary by specifying keys delimited by '.',
      similar to lodash's ``_.get()``.
      """
      return reduce(
          lambda d, key: d.get(key, default)
          if isinstance(d, dict)
          else default,
          keys.split("."),
          sample,
      )
  
imports: from enum import Enum
  import logging
  import shutil
  import struct
  import typing
  from functools import reduce
  import asyncio
  import aiofiles
  import strawberry
  import eta.core.serial
  import eta.core.utils
  import eta.core.video
  import fiftyone.core.fields
  import fiftyone.core.labels
  from fiftyone.core.collections import SampleCollection
  from fiftyone.utils.utils3d import OrthographicProjectionMetadata
  import fiftyone.core.media
label_desc: Use image node_id 3 for calling a global function with example usage: _deep_get(sample, keys, default) and returns: reduce