docstr: Helper function to obtain the location of a corner of a bbox
  
  Parameters
  ----------
  bbox : `matplotlib.transforms.Bbox`
  
  loc : {1, 2, 3, 4}
      Corner of *bbox*. Valid values are::
  
          'upper right'  : 1,
          'upper left'   : 2,
          'lower left'   : 3,
          'lower right'  : 4
  
  Returns
  -------
  x, y : float
      Coordinates of the corner specified by *loc*.
docstr_tok: ["Helper","function","to","obtain","the","location","of","a","corner","of","a","bbox","Parameters","--","--","--","--","--","bbox",":","`","matplotlib.transforms.Bbox","`","loc",":","{","1",",","2",",","3",",","4","}","Corner","of","*","bbox","*",".","Valid","values","are",":",":","'upper","right","'",":","1",",","'upper","left","'",":","2",",","'lower","left","'",":","3",",","'lower","right","'",":","4","Returns","--","--","--","-","x",",","y",":","float","Coordinates","of","the","corner","specified","by","*","loc","*","."]
code: def get_bbox_edge_pos(bbox, loc):
      """
      Helper function to obtain the location of a corner of a bbox
  
      Parameters
      ----------
      bbox : `matplotlib.transforms.Bbox`
  
      loc : {1, 2, 3, 4}
          Corner of *bbox*. Valid values are::
  
              'upper right'  : 1,
              'upper left'   : 2,
              'lower left'   : 3,
              'lower right'  : 4
  
      Returns
      -------
      x, y : float
          Coordinates of the corner specified by *loc*.
      """
      x0, y0, x1, y1 = bbox.extents
      if loc == 1:
          return x1, y1
      elif loc == 2:
          return x0, y1
      elif loc == 3:
          return x0, y0
      elif loc == 4:
          return x1, y0
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import warnings
  from matplotlib import docstring
  import six
  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 for calling the BboxConnector obj's underlying member method code with example usage: obj.get_bbox_edge_pos(bbox, loc) and returns: x1,  y1, x0,  y1, x0,  y0, x1,  y0