code: def get_path_collection_extents(
      master_transform, paths, transforms, offsets, offset_transform
  ):
      """
      Given a sequence of :class:`Path` objects,
      :class:`~matplotlib.transforms.Transform` objects and offsets, as
      found in a :class:`~matplotlib.collections.PathCollection`,
      returns the bounding box that encapsulates all of them.
  
      *master_transform* is a global transformation to apply to all paths
  
      *paths* is a sequence of :class:`Path` instances.
  
      *transforms* is a sequence of
      :class:`~matplotlib.transforms.Affine2D` instances.
  
      *offsets* is a sequence of (x, y) offsets (or an Nx2 array)
  
      *offset_transform* is a :class:`~matplotlib.transforms.Affine2D`
      to apply to the offsets before applying the offset to the path.
  
      The way that *paths*, *transforms* and *offsets* are combined
      follows the same method as for collections.  Each is iterated over
      independently, so if you have 3 paths, 2 transforms and 1 offset,
      their combinations are as follows:
  
          (A, A, A), (B, B, A), (C, A, A)
      """
      from .transforms import Bbox
  
      if len(paths) == 0:
          raise ValueError("No paths provided")
      return Bbox.from_extents(
          *_path.get_path_collection_extents(
              master_transform,
              paths,
              np.atleast_3d(transforms),
              offsets,
              offset_transform,
          )
      )
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  from weakref import WeakValueDictionary
  import numpy
  from .None import _path, rcParams
  from .cbook import _to_unmasked_float_array, simple_linear_interpolation, maxdict
label_desc: Use image node_id 1 for calling a global function with example usage: get_path_collection_extents(master_transform, paths, transforms, offsets, offset_transform) and returns: Bbox