code: def _to_copy(op, t, dtype=None, **kwargs):
      # For data, ignore dtype and use the inner type instead
      out_data = op(t._data, dtype=t.itype, **kwargs)
      # Apply the new dtype on the scale only
      out_scale = op(t._scale, dtype=dtype, **kwargs)
      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 5 for calling a global function with example usage: _to_copy(op, t, dtype) and returns: QTensor