code: def label_to_tensor(x):
      return torch.tensor(x).long()
  
file_path: pytorch-toolbelt/pytorch_toolbelt/datasets/classification.py
imports: from typing import Optional, List, Union, Callable
  import albumentations
  import numpy
  import torch
  from torch.utils.data import Dataset
  from .common import read_image_rgb, INPUT_IMAGE_KEY, INPUT_IMAGE_ID_KEY, INPUT_INDEX_KEY, TARGET_CLASS_KEY
  from ..utils import fs, image_to_tensor
label_desc: Use image node_id 1 for calling a global function with example usage: label_to_tensor(x) and returns: torch