code: def func_body_repr(
      func: Callable, keep_annotation: bool = True
  ) -> str:
      source = inspect.getsource(func)
      body_repr = re.split(r"\).*?:.*?\n", source, maxsplit=1)[1]
      if not keep_annotation:
          body_repr = re.sub(r"\s*# type:.*\n", "", body_repr)
      return body_repr
  
file_path: AutoGL/autogl/module/nas/space/gasso_space/utils/inspector.py
imports: import re
  import inspect
  from collections import OrderedDict
  from typing import Dict, List, Any, Optional, Callable, Set
  from .typing import parse_types
label_desc: Use image node_id 2 for calling a global function with example usage: func_body_repr(func, keep_annotation) and returns: body_repr