def is_record(type_field):
    """
    Is the avro field a record or a non record?
    Non-records return true. Fields that are scalar, null *or* a record
    also return True.
    """
    if isinstance(type_field, list):
        for avro_type in type_field:
            if isinstance(avro_type, dict):
                if avro_type.get("type") == "record":
                    return True
        return False
    else:
        if isinstance(type_field, dict):
            return type_field.get("type") == "record"
        else:
            return False