def METHOD_NAME():
    """Load Zenodo licenses.
    Create extra PID if license is to be mapped and already exists, otherwise
    create a new license record and a PID.
    """
    data = read_json('data/licenses.json')
    map_ = read_json('data/licenses_map.json')
    try:
        for lic in data:
            try:
                create_new_license(lic)
            except PIDAlreadyExists:
                pass
        for pid, alt_pid in map_.items():
            try:
                pid, record = license_resolver.resolve(pid)
                license_minter(record.id, {'id': alt_pid})
            except (PIDDoesNotExistError, PIDAlreadyExists):
                pass
        db.session.commit()
    except Exception:
        db.session.rollback()
        raise