code: def make_canonicalized_monomorphic_type(
      args: Any,
      kwargs: Any,
      capture_types: Any,
      polymorphic_type,
  ) -> Tuple[
      function_type_lib.FunctionType, trace_type.InternalTracingContext
  ]:
      """Generates function type given the function arguments."""
      kwargs = {
          function_type_lib.sanitize_arg_name(name): value
          for name, value in kwargs.items()
      }
  
      (
          function_type,
          type_context,
      ) = function_type_lib.canonicalize_to_monomorphic(
          args, kwargs, {}, capture_types, polymorphic_type
      )
  
      return function_type, type_context
  
imports: import functools
  import inspect
  from typing import Any, Dict, Tuple
  import six
  from tensorflow.core.function import trace_type
  from tensorflow.core.function.polymorphism import function_type
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import type_spec
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.util import nest
label_desc: Use image node_id 7 for calling a global function with example usage: make_canonicalized_monomorphic_type(args, kwargs, capture_types, polymorphic_type) and returns: function_type,  type_context