code: def strip_type_hints(source_code: str) -> str:
      """Strip type hints from source code.
  
      This function is modified from KFP.  The original source is below:
      https://github.com/kubeflow/pipelines/blob/b6406b02f45cdb195c7b99e2f6d22bf85b12268b/sdk/python/kfp/components/_python_op.py#L237-L248.
      """
      # For wandb, do not strip type hints
  
      #     try:
      #         return _strip_type_hints_using_lib2to3(source_code)
      #     except Exception as ex:
      #         print('Error when stripping type annotations: ' + str(ex))
  
      #     try:
      #         return _strip_type_hints_using_strip_hints(source_code)
      #     except Exception as ex:
      #         print('Error when stripping type annotations: ' + str(ex))
  
      return source_code
  
file_path: wandb/wandb/integration/kfp/kfp_patch.py
imports: import inspect
  import itertools
  import textwrap
  from typing import Callable, List, Mapping, Optional
  from pkg_resources import parse_version
  import wandb
  from .wandb_logging import wandb_log
label_desc: Use image node_id 9 for calling a global function with example usage: strip_type_hints(source_code) and returns: source_code