def parse_cluster_position(_cluster_position):
    try:

        if isinstance(_cluster_position, str):
            pass
        elif isinstance(_cluster_position, int):
            _cluster_position = str(_cluster_position)
        elif isinstance( _cluster_position, bytes ):
            _cluster_position = _cluster_position.decode("utf-8")
        elif isinstance( _cluster_position, OrientRecordLink ):
            _cluster_position = _cluster_position.get()

        _cluster, _position = _cluster_position.split( ':' )
    except (__HOLE__, ValueError):
        # String but with no ":"
        # so treat it as one param
        _position = _cluster_position
    return _position
dataset/ETHPy150Open mogui/pyorient/pyorient/utils.py/parse_cluster_position