code: def create_multiclass_accuracy():
      # NB: Older versions of PyTorch Lightning define native APIs for metric computation,
      # (e.g., pytorch_lightning.metrics.Accuracy), while newer versions rely on the `torchmetrics`
      # package (e.g. `torchmetrics.Accuracy)
      try:
          import torchmetrics
          from torchmetrics import Accuracy
  
          if Version(torchmetrics.__version__) >= Version("0.11"):
              return Accuracy(task="multiclass", num_classes=3)
          else:
              return (
                  Accuracy()
              )  # pylint: disable=no-value-for-parameter
      except ImportError:
          from pytorch_lightning.metrics import Accuracy
  
          return Accuracy()
  
imports: import tempfile
  import pytorch_lightning
  import torch
  import torch.nn.functional
  import torch.utils.tensorboard
  from packaging.version import Version
  from torch import nn
label_desc: Use image node_id 1 for calling a global function with example usage: create_multiclass_accuracy() and returns: Accuracy, Accuracy, Accuracy