code: def convert_to_list(
      data: Sequence | torch.Tensor | np.ndarray,
  ) -> list:
      """
      Convert to list from `torch.Tensor`/`np.ndarray`/`list`/`tuple` etc.
      Args:
          data: data to be converted
      Returns:
          a list
  
      """
      return (
          data.tolist()
          if isinstance(data, (torch.Tensor, np.ndarray))
          else list(data)
      )
  
imports: from __future__ import annotations
  import re
  from collections.abc import Sequence
  from typing import Any
  import numpy
  import torch
  import monai
  from monai.config.type_definitions import DtypeLike, NdarrayTensor
  from monai.utils import optional_import
label_desc: Use image node_id 12 for calling a global function with example usage: convert_to_list(data) and returns: unknown