code: def _copy_tensor(x: torch.Tensor) -> torch.Tensor:
      return x.clone().detach()
  
file_path: doctr/doctr/models/utils/pytorch.py
imports: import logging
  from typing import Any, List, Optional, Tuple, Union
  import torch
  from torch import nn
  from doctr.utils.data import download_from_url
label_desc: Use image node_id 1 for calling a global function with example usage: _copy_tensor(x) and returns: x