parameters: (node)
docstring: Resolves a saved model graph node into a tensor to be captured.
  
    Args:
      node: a tensor, variable, or resource to be resolved into a capturable
        tensor
    Returns:
      A list of tensors.
    Raises:
      ValueError: if the node cannot be converted into a tensor.
docstring_summary: Resolves a saved model graph node into a tensor to be captured.
docstring_tokens: Resolves a saved model graph node into a tensor to be captured .
function: def get_tensor_from_node(node):
    """Resolves a saved model graph node into a tensor to be captured.
  
    Args:
      node: a tensor, variable, or resource to be resolved into a capturable
        tensor
    Returns:
      A list of tensors.
    Raises:
      ValueError: if the node cannot be converted into a tensor.
    """
    with ops.init_scope():
      # TODO(b/210144904): Use __tf_tensor__ instead of `is_[...]` checks
      if getattr(node, "is_distributed_variable", False):
        return node
      elif getattr(node, "is_distributed_table", False):
        return node
      elif resource_variable_ops.is_resource_variable(node):
        return node.handle
      elif isinstance(node, tracking.Asset):
        return node.asset_path
      elif tensor_util.is_tf_type(node):
        return node
      elif isinstance(node, tracking.CapturableResource):
        # Note: this executes restored functions in the CapturableResource.
        return node.resource_handle
      raise ValueError(f"Cannot convert node {node} to tensor.")
function_tokens: def get_tensor_from_node ( node ) : with ops . init_scope ( ) : # TODO(b/210144904): Use __tf_tensor__ instead of `is_[...]` checks if getattr ( node , "is_distributed_variable" , False ) : return node elif getattr ( node , "is_distributed_table" , False ) : return node elif resource_variable_ops . is_resource_variable ( node ) : return node . handle elif isinstance ( node , tracking . Asset ) : return node . asset_path elif tensor_util . is_tf_type ( node ) : return node elif isinstance ( node , tracking . CapturableResource ) : # Note: this executes restored functions in the CapturableResource. return node . resource_handle raise ValueError ( f"Cannot convert node {node} to tensor." )