def METHOD_NAME(client, queue):
    """
    Submits and Cancels Jobs by two different methods:
    - Cancelling a job by its job id
    - Cancelling a job by its job set id
    """
    # Create the PodSpec for the job
    job_request_items1 = create_dummy_job(client)
    job_request_items2 = create_dummy_job(client)
    job_set_id1 = f"set-{uuid.uuid1()}"
    job_set_id2 = f"set-{uuid.uuid1()}"
    resp1 = client.submit_jobs(
        queue=queue, job_set_id=job_set_id1, job_request_items=job_request_items1
    )
    # Gets the job_id of the first job in job_request_items1
    # This job is cancelled using the job_id
    job_id = resp1.job_response_items[0].job_id
    client.cancel_jobs(job_id=job_id)
    client.submit_jobs(
        queue=queue, job_set_id=job_set_id2, job_request_items=job_request_items2
    )
    # This job is cancelled using the queue and job_set
    client.cancel_jobs(queue=queue, job_set_id=job_set_id1)