code: def _get_object_bounds(json_content, transform):
      xmin, xmax, ymin, ymax = json_content["metadata"]["bounds"]
      x0, y0 = transform.transform((xmin, ymin))
      x1, y1 = transform.transform((xmax, ymax))
  
      xmin, xmax = min(x0, x1), max(x0, x1)
      ymin, ymax = min(y0, y1), max(y0, y1)
  
      # A combination of a proportional factor (fraction of the drawing)
      # and a guestimate of the linewidth
      xmargin = (xmax - xmin) * 0.025 + 0.1
      ymargin = (ymax - ymin) * 0.025 + 0.1
      return (
          xmin - xmargin,
          xmax + xmargin,
          ymin - ymargin,
          ymax + ymargin,
      )
  
file_path: nilearn/nilearn/plotting/glass_brain.py
imports: import json
  import os
  from matplotlib import colors, patches, transforms
  from matplotlib.path import Path
label_desc: Use image node_id 7 for calling a global function with example usage: _get_object_bounds(json_content, transform) and returns: unknown,  unknown,  unknown,  unknown