class_docstr: A container for managing functions.
class_docstr_tok: ["A","container","for","managing","functions","."]
docstr: Try to generalize a FunctionType within a FunctionContext.
docstr_tok: ["Try","to","generalize","a","FunctionType","within","a","FunctionContext","."]
code: def generalize(
      self,
      context: FunctionContext,
      function_type: function_type_lib.FunctionType,
  ) -> function_type_lib.FunctionType:
      """Try to generalize a FunctionType within a FunctionContext."""
      if context in self._dispatch_dict:
          return self._dispatch_dict[
              context
          ].try_generalizing_function_type(function_type)
      else:
          return function_type
  
file_path: tensorflow-upstream/tensorflow/core/function/polymorphism/function_cache.py
imports: import collections
  from typing import Any, NamedTuple, Optional
  from tensorflow.core.function.polymorphism import function_type
  from tensorflow.core.function.polymorphism import type_dispatch
label_desc: Use image node_id 5 for calling the FunctionCache obj's underlying member method code with example usage: obj.generalize(context, function_type) and returns: self, function_type