def optional_id(record, context):
    """
    Create an optional id for mirbase entries. This basically uses the name
    field, which will be the miRBase gene name.
    """

    if "description" in record and "name" in record and " " not in record["name"]:
        return record["name"]
    if context.database == "MIRBASE":
        return record["name"]
    return None