code: def plot_object_collisions(
      collisions, ax, frame, num_objects=None, palette=None
  ):
      import seaborn as sns  # pylint: disable=import-outside-toplevel
  
      if num_objects is None:
          num_objects = (
              np.max([c["instances"] for c in collisions]) + 1
          )  # background
      if palette is None:
          palette = [(0.0, 0.0, 0.0)] + sns.color_palette(
              "hls", num_objects
          )
      coll = [
          c
          for c in collisions
          if (-1 not in c["instances"])
          and (frame - 0.5 <= c["frame"] <= frame + 0.5)
      ]
      for c in coll:
          ax.scatter(
              x=c["image_position"][0],
              y=c["image_position"][1],
              s=c["force"] * 1000,
              marker="*",
              facecolors=palette[c["instances"][0] + 1],
              edgecolors=palette[c["instances"][1] + 1],
              linewidth=50,
          )
  
file_path: kubric/kubric/plotting.py
imports: import colorsys
  import numpy
label_desc: Use image node_id 11 for calling a global function with example usage: plot_object_collisions(collisions, ax, frame, num_objects, palette) without return types