def METHOD_NAME(records_file=None, owner=None):
    """Load demo records."""
    # Resolve the user
    if owner.isdigit():  # user ID passed
        owner = User.query.get(int(owner))
    else:
        owner = User.query.filter_by(email=owner).one()
    with click.progressbar(json.load(records_file)) as records:
        loaddemorecords(records, owner)