code: def test_unauthorized_user_comment(load_fixture, responses):
      responses.add(
          responses.GET,
          github_url("/repositories/169101701/issues/26"),
          json=load_fixture("issue-26.json"),
          status=200,
      )
      responses.add(
          responses.GET,
          github_url("/repos/ursa-labs/ursabot/pulls/26"),
          json=load_fixture("pull-request-26.json"),
          status=200,
      )
      responses.add(
          responses.GET,
          github_url(
              "/repos/ursa-labs/ursabot/issues/comments/480243815"
          ),
          json=load_fixture("pull-request-26.json"),
          status=200,
      )
      responses.add(
          responses.POST,
          github_url("/repos/ursa-labs/ursabot/issues/26/comments"),
          json={},
      )
      responses.add(
          responses.POST,
          github_url("/repos/ursa-labs/ursabot/pulls/26/reactions"),
          json=(),
      )
  
      def handler(command, **kwargs):
          pass
  
      payload = load_fixture(
          "event-issue-comment-by-non-authorized-user.json"
      )
      payload["comment"]["body"] = "@ursabot crossbow submit -g nightly"
      bot = CommentBot(name="ursabot", handler=handler)
      bot.handle("issue_comment", payload)
  
      print([c.request.body for c in responses.calls])
      post = responses.calls[-2]
      reaction = responses.calls[-1]
      comment = (
          "```\nOnly contributors can submit requests to this bot. "
          "Please ask someone from the community for help with getting "
          "the first commit in.\n"
          "The Archery job run can be found at: "
          "https://github.com/apache/arrow/actions/runs/1463784188\n"
          "```"
      )
      assert json.loads(post.request.body) == {"body": f"{comment}"}
      assert json.loads(reaction.request.body) == {"content": "-1"}
  
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 10 for calling a global function with example usage: test_unauthorized_user_comment(load_fixture, responses) without return types