code: def check_collisions(self, bubble, bubbles):
      distance = self.outline_distance(bubble, bubbles)
      return len(distance[distance < 0])
  
file_path: matplotlib/galleries/examples/misc/packed_bubbles.py
imports: import matplotlib.pyplot
  import numpy
label_desc: Use image node_id 5 for calling the BubbleChart obj's underlying member method code with example usage: obj.check_collisions(bubble, bubbles) and returns: len