def referenceFile(self):
        """referenceQuery -file
        Return the reference file to which this object belongs.  None if object is not referenced

        :rtype: `FileReference`

        """
        try:
            return _FileReference( cmds.referenceQuery( self, f=1) )
        except __HOLE__:
            None
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.3/pymel/core/nodetypes.py/DependNode.referenceFile