def METHOD_NAME(polygon):
    """
    Load shapely Polygon objects into a trimesh.path.Path2D object
    Parameters
    -------------
    polygon : shapely.geometry.Polygon
      Input geometry
    Returns
    -----------
    kwargs : dict
      Keyword arguments for Path2D constructor
    """
    # start with a single polyline for the exterior
    entities = []
    # start vertices
    vertices = []
    if hasattr(polygon.boundary, 'geoms'):
        boundaries = polygon.boundary.geoms
    else:
        boundaries = [polygon.boundary]
    # append interiors as single Line objects
    for boundary in boundaries:
        entities.append(Line(np.arange(len(boundary.coords)) +
                             len(vertices)))
        # append the new vertex array
        vertices.extend(boundary.coords)
    # make sure result arrays are numpy
    kwargs = {'entities': entities,
              'vertices': np.array(vertices)}
    return kwargs