code: def __init__(
      self,
      bbox_to_anchor,
      x_size,
      y_size,
      loc,
      borderpad=0.5,
      bbox_transform=None,
  ):
      super().__init__(
          bbox_to_anchor,
          None,
          loc,
          borderpad=borderpad,
          bbox_transform=bbox_transform,
      )
  
      self.x_size = Size.from_any(x_size)
      self.y_size = Size.from_any(y_size)
  
imports: from matplotlib import _api, _docstring
  from matplotlib.offsetbox import AnchoredOffsetbox
  from matplotlib.patches import Patch, Rectangle
  from matplotlib.path import Path
  from matplotlib.transforms import Bbox, BboxTransformTo
  from matplotlib.transforms import IdentityTransform, TransformedBbox
  from .None import axes_size
  from .parasite_axes import HostAxes
label_desc: Use image node_id 1 to create a new AnchoredSizeLocator object from inherited base classes: AnchoredLocatorBase with example: obj = AnchoredSizeLocator(bbox_to_anchor, x_size, y_size, loc, borderpad, bbox_transform)