def get_test_scene():
    template_action = ac.Repeat( # repeat forever (
                         ac.Delay(1.0) # wait 1 second
                         + # and then
                         ac.Rotate(360, 2.0) # rotate 360 degrees in 2 seconds
                         + # and then
                         ac.Delay(1.0) # wait 1 second
                         + # and then
                         ac.ScaleTo(2.0, 1.0) #  zoom to 2x in 1 second
                         + # and then
                         ac.ScaleTo(1.0, 1.0)  # zoom to 1x in 1 second
                         )

    w, h = director.get_window_size()
    world = cocos.layer.Layer()

    # bluish square
    bluish_square = cocos.layer.ColorLayer(0, 160, 176, 255, width=100, height=100)
    # transform_anchor set to the center position of itself
    bluish_square.transform_anchor = (2.0/bluish_square.width, bluish_square.height/2.0)
    bluish_square.position = (w//3, h//2)
    bluish_square.do(template_action)
    world.add(bluish_square, z=2)

    mark_anchor = cocos.layer.ColorLayer(161, 191, 54, 255, width=8, height=8)
    mark_anchor.position = (bluish_square.x + bluish_square.transform_anchor_x,
                            bluish_square.y + bluish_square.transform_anchor_y)
    world.add(mark_anchor, z=3)

    # redish square
    redish_square = cocos.layer.ColorLayer(201, 43, 0, 255, width=100, height=100)
    # transform_anchor set to the bottomleft corner of itself
    redish_square.transform_anchor = (0, 0)
    redish_square.position = (w*2//3, h//2)
    redish_square.do(template_action)
    world.add(redish_square, z=2)

    mark_anchor = cocos.layer.ColorLayer(161, 191, 54, 255, width=8, height=8)
    mark_anchor.position = (redish_square.x + redish_square.transform_anchor_x,
                            redish_square.y + redish_square.transform_anchor_y)
    world.add(mark_anchor, z=3)

    scene = cocos.scene.Scene()
    scene.add(world)
    return scene
dataset/ETHPy150Open los-cocos/cocos/test/test_transform_anchor.py/get_test_scene/swapped operands of `/`