code: def create_positive_map_label_to_token(
      positive_map: Tensor, plus: int = 0
  ) -> dict:
      """Create a dictionary mapping the label to the token.
      Args:
          positive_map (Tensor): The positive map tensor.
          plus (int, optional): Value added to the label for indexing.
              Defaults to 0.
  
      Returns:
          dict: The dictionary mapping the label to the token.
      """
      positive_map_label_to_token = {}
      for i in range(len(positive_map)):
          positive_map_label_to_token[i + plus] = torch.nonzero(
              positive_map[i], as_tuple=True
          )[0].tolist()
      return positive_map_label_to_token
  
imports: import copy
  import re
  import warnings
  from typing import Optional, Tuple, Union
  import torch
  from torch import Tensor
  from mmdet.registry import MODELS
  from mmdet.structures import SampleList
  from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
  from .single_stage import SingleStageDetector
label_desc: Use image node_id 5 for calling a global function with example usage: create_positive_map_label_to_token(positive_map, plus) and returns: positive_map_label_to_token