code: def _add_regular_function(function_name):
      """
      Adds regular function that is applied directly on the underlying
      `_tensor` attribute, and stores the result in the same attribute.
      """
  
      def regular_func(self, *args, **kwargs):
          result = self.shallow_copy()
          result._tensor = getattr(result._tensor, function_name)(
              *args, **kwargs
          )
          return result
  
      if function_name not in globals():
          globals()[function_name] = regular_func
  
imports: import torch
  from ..tensor_types import is_tensor
  from ..util import torch_cat, torch_stack
label_desc: Use image node_id 17 for calling a global function with example usage: _add_regular_function(function_name) and returns: result