def encoding(oid_encoding):
    """
    Determines if the specified oid type is valid.
    :param oid_encoding:
    :return:
    """
    valid_types = ["b64asn1", "string", "ia5string"]
    if oid_encoding.lower() not in [o_type.lower() for o_type in valid_types]:
        raise ValidationError(
            "Invalid Oid Encoding: {} choose from {}".format(
                oid_encoding, ",".join(valid_types)
            )
        )

    Determines if the specified oid type is valid.
    :param oid_encoding:
    :return:
    
lemur/common/validators.py