code: def list_telemetry_imports(only_imported: bool = False) -> Set[str]:
      import_telemetry_set = {
          desc.name
          for desc in TelemetryImports.DESCRIPTOR.fields
          if desc.type == desc.TYPE_BOOL
      }
      if only_imported:
          imported_modules_set = set(sys.modules)
          return imported_modules_set.intersection(import_telemetry_set)
      return import_telemetry_set
  
file_path: wandb/wandb/sdk/lib/telemetry.py
imports: import re
  import sys
  from types import TracebackType
  from typing import TYPE_CHECKING, ContextManager, Dict, List, Optional, Set, Type
  import wandb
  from wandb.proto.wandb_telemetry_pb2 import Imports
  from wandb.proto.wandb_telemetry_pb2 import TelemetryRecord
label_desc: Use image node_id 3 for calling a global function with example usage: list_telemetry_imports(only_imported) and returns: import_telemetry_set, imported_modules_set