class_docstr: A datatype representing a single item tensor (an int/float number)
code: def serialize(self, data: Tensor) -> Union[float, int]:
      return data.item()
  
file_path: lightning-flash/src/flash/core/serve/types/number.py
imports: from dataclasses import dataclass
  from typing import Union
  import torch
  from torch import Tensor
  from flash.core.serve.types.base import BaseType
label_desc: Use image node_id 2 for calling the Number obj's underlying member method code with example usage: obj.serialize(data) and returns: data