code: def _maybe_detach(a):
      if isinstance(a, torch.Tensor):
          return a.detach()
      return a
  
file_path: FATE/python/fate/arch/tensor/distributed/_op_matmul.py
imports: import logging
  import torch
  from fate.arch.tensor import _custom_ops
  from ._tensor import DTensor, implements
label_desc: Use image node_id 3 for calling a global function with example usage: _maybe_detach(a) and returns: a, a