@publisher('model')
def check_no_references():
    if len(pm.listReferences()):
        raise PublishError(
            'There should be no <b>References</b> in a <b>Model</b> scene.'
        )
there should be no references
dataset/ETHPy150Open eoyilmaz/anima/anima/env/mayaEnv/publish.py/check_no_references