def transform_path(self, path):
    vertices = path.vertices
    if ((len(vertices) == 2) and (vertices[(0, 0)] == vertices[(1, 0)])):
        return Path(self.transform(vertices), path.codes)
    ipath = path.interpolated(path._interpolation_steps)
    return Path(self.transform(ipath.vertices), ipath.codes)
def transform_path(self, path):
    vertices = path.vertices
    if ((len(vertices) == 2) and (vertices[(0, 0)] == vertices[(1, 0)])):
        return Path(self.transform(vertices), path.codes)
    ipath = path.interpolated(path._interpolation_steps)
    return Path(self.transform(ipath.vertices), ipath.codes)