def METHOD_NAME(self, document):
    height = document.height
    scale = document.scale
    svg = '<ellipse\n'
    x = self.location[0] * scale
    y = height-self.location[1]* scale
    if self.angle != 0:
        svg += f'    transform="translate({x},{y})rotate({self.angle})"\n'
    else:
        svg += f'    cx="{x}"\n'
        svg += f'    cy="{y}"\n'
    svg += f'    rx="{self.rad_x * scale}"\n'
    svg += f'    ry="{self.rad_y * scale}"\n'
    if self.attributes:
        svg += self.attributes.METHOD_NAME(document)
    svg += '/>'
    return svg