code: def plot_center_of_mass(
      objects, ax, frames=slice(None, None), palette=None
  ):
      import seaborn as sns  # pylint: disable=import-outside-toplevel
  
      num_objects = len(objects) + 1  # background
      if palette is None:
          palette = [(0.0, 0.0, 0.0)] + sns.color_palette(
              "hls", num_objects
          )
      for k, obj in enumerate(objects):
          x, y = obj["image_positions"][frames].T
          ax.scatter(x, y, marker="X", s=50000, color=palette[k + 1])
  
file_path: kubric/kubric/plotting.py
imports: import colorsys
  import numpy
label_desc: Use image node_id 10 for calling a global function with example usage: plot_center_of_mass(objects, ax, frames, palette) without return types