code: def make_path_regular(p):
      """
      fill in the codes if None.
      """
      c = p.codes
      if c is None:
          c = np.empty(p.vertices.shape[:1], "i")
          c.fill(Path.LINETO)
          c[0] = Path.MOVETO
  
          return Path(p.vertices, c)
      else:
          return p
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import numpy
  from matplotlib.path import Path
  from operator import xor
  import warnings
label_desc: Use image node_id 15 for calling a global function with example usage: make_path_regular(p) and returns: Path, p