code: def apply_delayed_types(
      type_map=annotated_class_list, fnlist=annotated_function_list
  ):  # pylint: disable=dangerous-default-value
      """
      Apply all delayed types. See annotate()
      """
      # pylint: disable=no-member
      # type name is a dict from str to type
      for func in fnlist:
          if (
              hasattr(func, "return_type")
              and isinstance(func.return_type, _string_types)
              and func.return_type in type_map
          ):
              func.return_type = type_map[func.return_type]
          if hasattr(func, "type_annotations"):
              for key in func.type_annotations:
                  if func.type_annotations[key] in type_map:
                      func.type_annotations[key] = type_map[
                          func.type_annotations[key]
                      ]
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/coremltools/converters/mil/mil/types/annotate.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  from six import string_types
label_desc: Use image node_id 3 for calling a global function with example usage: apply_delayed_types(type_map, fnlist) without return types