code: def test_draw_keypoints_colored(colors):
      # Keypoints is declared on top as global variable
      keypoints_cp = keypoints.clone()
  
      img = torch.full((3, 100, 100), 0, dtype=torch.uint8)
      img_cp = img.clone()
      result = utils.draw_keypoints(
          img,
          keypoints,
          colors=colors,
          connectivity=[
              (0, 1),
          ],
      )
      assert result.size(0) == 3
      assert_equal(keypoints, keypoints_cp)
      assert_equal(img, img_cp)
  
imports: import os
  import re
  import sys
  import tempfile
  from io import BytesIO
  import numpy
  import pytest
  import torch
  import torchvision.transforms.functional
  import torchvision.utils
  from common_utils import assert_equal, cpu_and_cuda
  from PIL import __version__, Image, ImageColor
  from torchvision.transforms.v2.functional import to_dtype
label_desc: Use image node_id 19 for calling a global function with example usage: test_draw_keypoints_colored(colors) without return types