code: def random_color(seed):
      """Random a color according to the input seed."""
      if sns is None:
          raise RuntimeError(
              "motmetrics is not installed,\
                   please install it by: pip install seaborn"
          )
      np.random.seed(seed)
      colors = sns.color_palette()
      color = colors[np.random.choice(range(len(colors)))]
      color = tuple([int(255 * c) for c in color])
      return color
  
imports: from typing import Dict, List, Optional, Tuple, Union
  import cv2
  import mmcv
  import numpy
  import torch
  from mmengine.dist import master_only
  from mmengine.structures import InstanceData, PixelData
  from mmengine.visualization import Visualizer
  from ..evaluation import INSTANCE_OFFSET
  from ..registry import VISUALIZERS
  from ..structures import DetDataSample
  from ..structures.mask import BitmapMasks, PolygonMasks, bitmap_to_polygon
  from .palette import _get_adaptive_scales, get_palette, jitter_color
label_desc: Use image node_id 1 for calling a global function with example usage: random_color(seed) and returns: color