code: def to_local_f(input):
      if isinstance(input, torch.Tensor):
          return input
  
      else:
          # torch tensor-like
          if hasattr(input, "__torch_function__"):
              return input.__torch_function__(
                  to_local_f, (type(input),), (input,), None
              )
      raise NotImplementedError("")
  
file_path: FATE/python/fate/arch/tensor/_custom_ops.py
imports: import torch
label_desc: Use image node_id 8 for calling a global function with example usage: to_local_f(input) and returns: input, input