code: def assert_is_functype(func: Any) -> None:
      """Asserts func is an instance of FunctionType.
  
      Args:
        func: The function to be checked.
  
      Raises:
        ValueError: if func is not FunctionType.
      """
      if not isinstance(func, types.FunctionType):
          raise ValueError(
              f"Expected a typehint-annotated Python function (got {func} instead)."
          )
  
imports: import enum
  import inspect
  import sys
  import types
  from typing import Any, Dict, Optional, Type
  from tfx import types
  from tfx.dsl.components.base import base_component
  from tfx.dsl.components.base import base_executor
  from tfx.dsl.components.base import executor_spec
  from tfx.types import artifact
  from tfx.types import component_spec
  from tfx.types import system_executions
label_desc: Use image node_id 1 for calling a global function with example usage: assert_is_functype(func) without return types