def main():
    # For the purpose of this sample, the reading in of credentials, the setup
    # of HTTP request headers, and the construction and sending of a request
    # object has been abstracted to the 'RestApiClient' class.
    # For more information on how these operations are done see the sample
    # '01_Authentication.py'.
    client = client_module.RestApiClient(version='5.0')

    # Many API endpoints accept parameters.
    # One type of parameter is a query parameter.
    # If an endpoint accepts query parameters they are passed after a '?' as
    # part of the URL. Each parameter has a name and a value separated by a
    # '='. Several parameters can be passed separated by '&' characters.
    SampleUtilities.pretty_print_request(
        client, 'reference_data/sets?name=rest_api_samples_testset&' +
        'element_type=ALN', 'POST')

    response = client.call_api(
        'reference_data/sets?name=rest_api_samples_testset&element_type=ALN',
        'POST')

    # The response code for successfully creating a set is 201.
    if (response.code == 201):
        SampleUtilities.pretty_print_response(response)
    # The error code that occurs when attempting to create a set that already
    # exists is 409.
    elif (response.code == 409):
        print("Reference set already exists")
        response = client.call_api(
            'reference_data/sets/rest_api_samples_testset', 'GET')
        SampleUtilities.pretty_print_response(response)
    elif (500 >= response.code):
        print(
            "An internal server error occurred. You should check your system.")
        SampleUtilities.pretty_print_response(response)
    else:
        print("Some other error has occurred:")
        SampleUtilities.pretty_print_response(response)

    # You can uncomment this line to have this script remove the data it
    # creates after it is done, or you can invoke the Cleanup script directly:
    # Cleanup.cleanup_introduction_data(client)
dataset/ETHPy150Open ibm-security-intelligence/api-samples/introduction/02_QueryParameters.py/main/swapped operands of `>=`