code: def test_path(session_global_datadir):
      label = Label(
          path=str(session_global_datadir / "imagenet_labels.txt")
      )
      assert label.deserialize("chickadee") == torch.tensor(19)
      assert label.serialize(torch.tensor(19)) == "chickadee"
  
file_path: lightning-flash/tests/core/serve/test_types/test_label.py
imports: import pytest
  import torch
  from flash.core.serve.types import Label
  from flash.core.utilities.imports import _TOPIC_SERVE_AVAILABLE
label_desc: Use image node_id 1 for calling a global function with example usage: test_path(session_global_datadir) without return types