code: def test_maintenance_patch_selection(fake_issue_tracker):
      r = Release("0.17.1", repo=None, issue_tracker=fake_issue_tracker)
  
      shas_to_pick = [
          c.hexsha
          for c in r.commits_to_pick(exclude_already_applied=False)
      ]
      expected = [
          "8939b4bd446ee406d5225c79d563a27d30fd7d6d",
          "bcef6c95a324417e85e0140f9745d342cd8784b3",
          "6002ec388840de5622e39af85abdc57a2cccc9b2",
          "9123dadfd123bca7af4eaa9455f5b0d1ca8b929d",
      ]
      assert shas_to_pick == expected
  
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 9 for calling a global function with example usage: test_maintenance_patch_selection(fake_issue_tracker) without return types