code: def no_grad(orig_func):
      import torch
  
      if parse(torch.__version__) >= parse("2.1.0"):
          return torch.no_grad(orig_func)
      else:
          return orig_func
  
file_path: keras/keras/utils/torch_utils.py
imports: import io
  from packaging.version import parse
  from keras.api_export import keras_export
  from keras.layers import Layer
  from keras.ops import convert_to_numpy
  from keras.ops import convert_to_tensor
label_desc: Use image node_id 1 for calling a global function with example usage: no_grad(orig_func) and returns: torch, orig_func