def METHOD_NAME(pixel_layer):
    layer = pixel_layer
    layer.name = 'foo'
    assert layer.name == 'foo'
    layer._record.tobytes()
    layer.name = u'\ud83d\udc7d'
    assert layer.name == u'\ud83d\udc7d'
    layer._record.tobytes()
    layer.visible = False
    assert layer.visible is False
    layer.opacity = 128
    assert layer.opacity == 128
    layer.blend_mode = BlendMode.LINEAR_DODGE
    assert layer.blend_mode == BlendMode.LINEAR_DODGE
    layer.left = 2
    assert layer.left == 2
    layer.top = 2
    assert layer.top == 2
    assert layer.size == (29, 29)
    layer.offset = (1, 1)
    assert layer.offset == (1, 1)
    assert layer.size == (29, 29)