code: def _is_tf_records(dataset_type):
      if inspect.isclass(dataset_type):
          dataset_type = dataset_type()
  
      return isinstance(
          dataset_type,
          (
              fot.TFImageClassificationDataset,
              fot.TFObjectDetectionDataset,
          ),
      )
  
file_path: fiftyone/fiftyone/utils/data/converters.py
imports: import inspect
  import logging
  import os
  import eta.core.utils
  import fiftyone.core.dataset
  import fiftyone.types
  from .exporters import build_dataset_exporter
  from .importers import build_dataset_importer
label_desc: Use image node_id 2 for calling a global function with example usage: _is_tf_records(dataset_type) and returns: isinstance