code: def test_release_issues(fake_issue_tracker):
      # major release issues
      r = Release("1.0.0", repo=None, issue_tracker=fake_issue_tracker)
      assert r.issues.keys() == set(
          [
              "ARROW-300",
              "ARROW-4427",
              "ARROW-5035",
              "ARROW-8473",
              "ARROW-8472",
              "ARROW-8471",
              "ARROW-8974",
              "ARROW-8973",
          ]
      )
      # minor release issues
      r = Release("0.17.0", repo=None, issue_tracker=fake_issue_tracker)
      assert r.issues.keys() == set(
          [
              "ARROW-2882",
              "ARROW-2587",
              "ARROW-2447",
              "ARROW-2255",
              "ARROW-1907",
              "ARROW-1636",
          ]
      )
      # patch release issues
      r = Release("1.0.1", repo=None, issue_tracker=fake_issue_tracker)
      assert r.issues.keys() == set(
          [
              "ARROW-9684",
              "ARROW-9667",
              "ARROW-9659",
              "ARROW-9644",
              "ARROW-9643",
              "ARROW-9609",
              "ARROW-9606",
          ]
      )
      r = Release("2.0.0", repo=None, issue_tracker=fake_issue_tracker)
      assert r.issues.keys() == set(
          [
              "ARROW-9784",
              "ARROW-9767",
              "GH-1230",
              "ARROW-9694",
              "ARROW-5643",
              "GH-1243",
              "GH-1300",
          ]
      )
  
file_path: arrow/dev/archery/archery/release/tests/test_release.py
imports: import pytest
  from archery.release.core import Release, MajorRelease, MinorRelease, PatchRelease, IssueTracker, Version, Issue, CommitTitle, Commit
  from archery.testing import DotDict
label_desc: Use image node_id 7 for calling a global function with example usage: test_release_issues(fake_issue_tracker) without return types