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