code: def _get_color_for_nvtx(name):
      m = hashlib.sha256()
      m.update(name.encode())
      hash_value = int(m.hexdigest(), 16)
      idx = hash_value % len(_NVTX_COLORS)
      return _NVTX_COLORS[idx]
  
imports: import hashlib
  from functools import partial
  from nvtx import annotate
label_desc: Use image node_id 1 for calling a global function with example usage: _get_color_for_nvtx(name) and returns: _NVTX_COLORS