def METHOD_NAME(self, antialias, width, line_cap, line_join, size=(10, 10)):
    gc = GraphicsContextArray(size, pix_format="rgb24")
    # clear background to white values (255, 255, 255)
    gc.clear((1.0, 1.0, 1.0))
    # single horizontal line across bottom of buffer
    gc.move_to(1, 3)
    gc.line_to(7, 3)
    gc.line_to(7, 9)
    # Settings allow the faster outline path through C++ code
    gc.set_stroke_color((0.0, 0.0, 0.0))  # black
    gc.set_antialias(antialias)
    gc.set_line_width(width)
    gc.set_line_cap(line_cap)
    gc.set_line_join(line_join)
    gc.stroke_path()
    return gc