code: def test_open_pull_request_with_existing_label(
      load_fixture, responses, fixture_name, expected_label
  ):
      responses.add(
          responses.GET,
          github_url("/repositories/169101701/pulls/26"),
          json=load_fixture("pull-request-26-awaiting-review.json"),
          status=200,
      )
      responses.add(
          responses.GET,
          github_url("/repos/ursa-labs/ursabot/issues/26/labels"),
          json=load_fixture("label-awaiting-review.json"),
          status=200,
      )
      responses.add(
          responses.DELETE,
          github_url(
              "/repos/ursa-labs/ursabot/issues/26/labels/awaiting%20review"
          ),
          status=200,
      )
      responses.add(
          responses.POST,
          github_url("/repos/ursa-labs/ursabot/issues/26/labels"),
          status=201,
      )
      payload = load_fixture(fixture_name)
      payload["pull_request"]["labels"] = ["awaiting review"]
  
      bot = PullRequestWorkflowBot("pull_request_target", payload)
      bot.handle()
  
      post = responses.calls[-1]
      assert json.loads(post.request.body) == [expected_label]
  
imports: import json
  import os
  from unittest import mock
  from unittest.mock import Mock
  import click
  import pytest
  import responses
  from archery.bot import CommentBot, CommandError, PullRequestState, PullRequestWorkflowBot, group
label_desc: Use image node_id 18 for calling a global function with example usage: test_open_pull_request_with_existing_label(load_fixture, responses, fixture_name, expected_label) without return types