code: def _get_leftmost_point(path):
      """Returns the leftmost, topmost point of the path."""
      leftmost = (float("inf"), float("inf"))
      idx = -1
  
      for i, cmd in enumerate(path):
          if len(cmd) > 1:
              endpoint = cmd[-2:]
              if _is_to_left_of(endpoint, leftmost):
                  leftmost = endpoint
                  idx = i
  
      return leftmost, idx
  
imports: import io
  import numpy
  from PIL import Image
  from six.moves import zip_longest
  from skimage import draw
  import tensorflow.compat.v1
label_desc: Use image node_id 14 for calling a global function with example usage: _get_leftmost_point(path) and returns: leftmost,  idx