code: def test_revisions(
      mocker, arg_revisions, is_dirty, expected_revisions
  ):
      mock_scm = mocker.Mock()
      mock_scm.configure_mock(
          **{
              "is_dirty.return_value": is_dirty,
              "get_ref.return_value": None,
          }
      )
      mock_repo = mocker.Mock(scm=mock_scm)
      assert (
          _revisions(mock_repo, arg_revisions, False)
          == expected_revisions
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_revisions(mocker, arg_revisions, is_dirty, expected_revisions) without return types