code: def create_nominal(cls, name, labels):
          
          return Attribute(
              javabridge.make_instance(
                  "weka/core/Attribute", "(Ljava/lang/String;Ljava/util/List;)V", name, javabridge.make_list(labels)))
docs: Creates a nominal attribute.
  
          :param name: the name of the attribute
          :type name: str
          :param labels: the list of string labels to use
          :type labels: list