code: def _data_tolist(tensor: torch.Tensor) -> list:
      """tolist() method is not allowed for a subclass of tensor. Tensor.data returns a Tensor."""
      return tensor.data.tolist()
  
imports: from types import MethodType
  from typing import Callable, Optional, Union
  import torch
  import torch.nn
  from packaging import version
  from torch import Tensor
  from torch.nn import Parameter
  from torch.utils._pytree import tree_map
  from colossalai.logging import get_dist_logger
  from .construction import ConstructorManager
  from .pretrained import PretrainedManager
  import colossalai._analyzer._subclasses._meta_registration
label_desc: Use image node_id 1 for calling a global function with example usage: _data_tolist(tensor) and returns: tensor