code: def detach(op, t):
      # Detach both data and scale
      out_data = op(t._data)
      out_scale = op(t._scale)
      return QTensor(out_data, out_scale)
  
imports: import numbers
  from dataclasses import dataclass, field
  from functools import partial
  from typing import Any, Callable, List, Optional
  import torch
  from .None import QTensor, dtype_info, qfallback
label_desc: Use image node_id 6 for calling a global function with example usage: detach(op, t) and returns: QTensor