code: def jitter_color(color: tuple) -> tuple:
      """Randomly jitter the given color in order to better distinguish instances
      with the same class.
  
      Args:
          color (tuple): The RGB color tuple. Each value is between [0, 255].
  
      Returns:
          tuple: The jittered color tuple.
      """
      jitter = np.random.rand(3)
      jitter = (jitter / np.linalg.norm(jitter) - 0.5) * 0.5 * 255
      color = np.clip(jitter + color, 0, 255).astype(np.uint8)
      return tuple(color)
  
file_path: mmdetection/mmdet/visualization/palette.py
imports: from typing import List, Tuple, Union
  import mmcv
  import numpy
  from mmengine.utils import is_str
label_desc: Use image node_id 4 for calling a global function with example usage: jitter_color(color) and returns: tuple