code: def _import_class_path(
      executable_spec: Union[
          _PythonClassExecutableSpec, _BeamExecutableSpec
      ],
  ):
      """Import the class path from Python or Beam executor spec."""
      if isinstance(executable_spec, _BeamExecutableSpec):
          import_utils.import_class_by_path(
              executable_spec.python_executor_spec.class_path
          )
      elif isinstance(executable_spec, _PythonClassExecutableSpec):
          import_utils.import_class_by_path(executable_spec.class_path)
      else:
          raise ValueError(
              f"Executable spec type {type(executable_spec)} is not supported."
          )
  
file_path: tfx/tfx/orchestration/python_execution_binary/entrypoint.py
imports: from typing import Union
  from absl import flags
  from absl import logging
  from tfx.orchestration.python_execution_binary import python_execution_binary_utils
  from tfx.orchestration.python_execution_binary import python_execution_lib
  from tfx.orchestration.python_execution_binary import system_flags
  from tfx.proto.orchestration import executable_spec_pb2
  from tfx.utils import import_utils
  from google.protobuf import text_format
label_desc: Use image node_id 1 for calling a global function with example usage: _import_class_path(executable_spec) without return types