code: def to_torch(cls, value: TKEnum["DType"]) -> torch.dtype:
      data = cls.get(value=value)
  
      if data == DType.INT64:
          return torch.long
  
      elif data == DType.FLOAT16:
          return torch.float16
  
      elif data == DType.FLOAT32:
          return torch.float32
  
      elif data == DType.FLOAT64:
          return torch.float64
  
      raise ValueError
  
imports: from enum import Enum, EnumMeta
  from typing import Iterator, Type, TypeVar, Union
  import torch
  from kornia.core import Tensor
label_desc: Use image node_id 2 for calling the DType obj's underlying member method code with example usage: obj.to_torch(cls, value) and returns: torch, torch, torch, torch