parameters: (self, value)
return_statement: return value
docstring: Marks a value as returned from the function guarded by the scope.
docstring_summary: Marks a value as returned from the function guarded by the scope.
docstring_tokens: Marks a value as returned from the function guarded by the scope .
function: def mark_return_value(self, value):
      """Marks a value as returned from the function guarded by the scope."""
      if self.use_auto_deps:
        self._return_value_marked = True
        if value is None:
          # We don't create dummy returns, to preserve Python semantics. The user
          # is responsible for adding a return value to the top-level function.
          return None
  
        def _mark_return_if_tensor(t):
          if tensor_util.is_tensor(t):
            return self.autodeps_scope.mark_as_return(t)
          return t
  
        value = nest.map_structure(_mark_return_if_tensor, value)
      return value
function_tokens: def mark_return_value ( self , value ) : if self . use_auto_deps : self . _return_value_marked = True if value is None : # We don't create dummy returns, to preserve Python semantics. The user # is responsible for adding a return value to the top-level function. return None def _mark_return_if_tensor ( t ) : if tensor_util . is_tensor ( t ) : return self . autodeps_scope . mark_as_return ( t ) return t value = nest . map_structure ( _mark_return_if_tensor , value ) return value