class_docstr: Wraps a tf V1 piece of code in a function.
class_docstr_tok: ["Wraps","a","tf","V1","piece","of","code","in","a","function","."]
code: def _call_impl(self, args, kwargs):
      if self._arg_keywords is None:
          if kwargs:
              raise NotImplementedError(
                  "Keyword arguments are not supported when calling a "
                  f"wrap_function-decorated function. Got {kwargs}."
              )
          if self._signature is not None:
              args = list(args)
              for i, arg in enumerate(args):
                  if isinstance(
                      self._signature[i], tensor_lib.DenseSpec
                  ):
                      args[i] = ops.convert_to_tensor(
                          arg, self._signature[i].dtype
                      )
          return self._call_flat(args, self.captured_inputs)
      else:
          return super()._call_impl(args, kwargs)
  
imports: import weakref
  from tensorflow.core.function.polymorphism import function_type
  from tensorflow.core.protobuf import meta_graph_pb2
  from tensorflow.core.protobuf import struct_pb2
  from tensorflow.python.eager import context
  from tensorflow.python.eager import function
  from tensorflow.python.eager import lift_to_graph
  from tensorflow.python.eager.polymorphic_function import atomic_function
  from tensorflow.python.framework import composite_tensor
  from tensorflow.python.framework import func_graph
  from tensorflow.python.framework import importer
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.saved_model import nested_structure_coder
  from tensorflow.python.trackable import data_structures
  from tensorflow.python.util import nest
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 2 for calling the WrappedFunction obj's underlying member method code with example usage: obj._call_impl(args, kwargs) and returns: self, super