def remote(obj):
    """ Return the remote counterpart of a local object.

    :param obj: the local object
    :return: the corresponding remote entity
    """
    try:
        return obj.__remote__
    except __HOLE__:
        return None
dataset/ETHPy150Open nigelsmall/py2neo/py2neo/types.py/remote