code: def make_labels_dict() -> Dict[str, str]:
      """Get all registered and system generated labels as a dict.
  
      Returns:
        All registered and system generated labels as a dict.
      """
      result = dict(
          {
              _LABEL_TFX_VERSION: version.__version__,
              _LABEL_TFX_PY_VERSION: "%d.%d"
              % (sys.version_info.major, sys.version_info.minor),
          },
          **getattr(_thread_local_labels_state, "dictionary", {}),
      )
  
      # Only first-party tfx component's executor telemetry will be collected.
      # All other executors will be recorded as `third_party_executor`.
      if result.get(LABEL_TFX_EXECUTOR) and not result[
          LABEL_TFX_EXECUTOR
      ].startswith("tfx."):
          result[LABEL_TFX_EXECUTOR] = "third_party_executor"
  
      for k, v in result.items():
          result[k] = _normalize_label(v)
      return result
  
file_path: tfx/tfx/utils/telemetry_utils.py
imports: import contextlib
  import functools
  import re
  import sys
  import threading
  from typing import Dict, List, Any, Callable
  from absl import logging
  from googleapiclient import http
  from tfx import version
label_desc: Use image node_id 3 for calling a global function with example usage: make_labels_dict() and returns: result