def METHOD_NAME():
    # Tests a case in which a child node both enables and disables a texture.
    tattr1 = core.TextureAttrib.make()
    tattr1 = tattr1.add_on_stage(stage1, tex1)
    tattr1 = tattr1.add_on_stage(stage2, tex2)
    tattr2 = core.TextureAttrib.make()
    tattr2 = tattr2.add_on_stage(stage3, tex3)
    tattr2 = tattr2.add_on_stage(stage1, tex1)
    tattr2 = tattr2.add_off_stage(stage2)
    tattr3 = tattr1.compose(tattr2)
    assert tattr3.get_num_on_stages() == 2
    assert stage1 in tattr3.on_stages
    assert stage2 not in tattr3.on_stages
    assert stage3 in tattr3.on_stages