def METHOD_NAME(
    self,
    x,
    y,
    radiusx,
    radiusy,
    rotation,
    startangle,
    endangle,
    anticlockwise,
    path,
    *args,
    **kwargs
):
    sweep_angle = endangle - startangle
    if anticlockwise:
        sweep_angle -= math.radians(360)
    ellipse_path = Path()
    ellipse_path.addArc(
        self.container.scale * (x - radiusx),
        self.container.scale * (y - radiusy),
        self.container.scale * (x + radiusx),
        self.container.scale * (y + radiusy),
        math.degrees(startangle),
        math.degrees(sweep_angle),
    )
    rotation_matrix = Matrix()
    rotation_matrix.postRotate(
        math.degrees(rotation),
        self.container.scale * x,
        self.container.scale * y,
    )
    ellipse_path.transform(rotation_matrix)
    path.addPath(ellipse_path)