code: def _to_numpy_single(arg: torch.Tensor) -> np.ndarray:
      return arg.detach().cpu().numpy()
  
file_path: torchsde/diagnostics/utils.py
imports: import itertools
  import os
  import random
  import matplotlib.pyplot
  import numpy
  import torch
  from scipy import stats
  from torchsde.types import Optional, Tensor, Sequence, Union, Callable
label_desc: Use image node_id 2 for calling a global function with example usage: _to_numpy_single(arg) and returns: arg