code: def _has_list(dataset: fo.Dataset, path: str, is_frame_field: bool):
      keys = path.split(".")
      path = None
  
      if is_frame_field:
          path = "frames"
  
      for key in keys:
          path = ".".join([path, key]) if path else key
          field = dataset.get_field(path)
          if isinstance(field, fof.ListField):
              return True
  
      return False
  
imports: from dataclasses import asdict, dataclass
  from datetime import date, datetime
  import math
  import typing
  import asyncio
  from bson.regex import Regex
  from motor.motor_asyncio import AsyncIOMotorCollection
  import strawberry
  import fiftyone
  import fiftyone.core.fields
  import fiftyone.server.constants
  from fiftyone.server.data import Info
  from fiftyone.server.utils import meets_type
label_desc: Use image node_id 3 for calling a global function with example usage: _has_list(dataset, path, is_frame_field) and returns: False, True