def METHOD_NAME(doc_key, username, repo_id, file_path):
    md5 = hashlib.md5(force_bytes(repo_id + file_path)).hexdigest()
    try:
        doc_key_obj = OnlyOfficeDocKey.objects.create(doc_key=doc_key,
                                                      username=username,
                                                      repo_id=repo_id,
                                                      file_path=file_path,
                                                      repo_id_file_path_md5=md5)
    except Exception as e:
        logger.error(e)
        return
    return doc_key_obj.doc_key