def get_record(params,record_uid):    
    """Return the referenced record"""
    record_uid = record_uid.strip()

    if not record_uid:
        print('No record UID provided')
        return

    if not params.record_cache:
        print('No record cache.  Sync down first.')
        return

    if not record_uid in params.record_cache:
        print('Record UID not found.')
        return

    cached_rec = params.record_cache[record_uid]

    if params.debug: print('Cached Rec: ' + str(cached_rec))
    data = json.loads(cached_rec['data'].decode('utf-8')) 

    rec = Record(record_uid)
    rec.load(data,cached_rec['revision'])

    return rec
dataset/ETHPy150Open Keeper-Security/Commander/keepercommander/api.py/get_record/original