code: def test_join_requirements():
      with patch(
          gen_requirements,
          REQUIREMENTS_BY_PIECE=TEST_REQUIREMENTS_BY_PIECE,
          CONSTRAINTS=TEST_CONSTRAINTS,
      ):
          requirements = gen_requirements.join_requirements()
          assert requirements == collections.OrderedDict(
              [
                  (
                      "core",
                      (
                          "core tvm requirements",
                          ["bar==1.0", "foo", "non-constrained"],
                      ),
                  ),
                  (
                      "extra-one",
                      (
                          "requirements for one feature",
                          ["baz>2.3", "qux~=1.2.4"],
                      ),
                  ),
                  (
                      "extra-two",
                      (
                          "requirements for two feature",
                          [
                              "buz>=1.3.0,<2.0.0",
                              "qux~=1.2.4",
                              "semver-minor>=0.2.2-patch2.post3+buildmeta,<0.3.0",
                              "semver-patch>=0.0.2+bm,<0.0.3",
                          ],
                      ),
                  ),
                  (
                      "dev",
                      (
                          "requirements for dev",
                          ["buz>=1.3.0,<2.0.0", "oof==0.3.4", "rab"],
                      ),
                  ),
                  (
                      "all-prod",
                      (
                          "Combined dependencies for all TVM pieces, excluding dev",
                          [
                              "bar==1.0",
                              "baz>2.3",
                              "buz>=1.3.0,<2.0.0",
                              "foo",
                              "non-constrained",
                              "qux~=1.2.4",
                              "semver-minor>=0.2.2-patch2.post3+buildmeta,<0.3.0",
                              "semver-patch>=0.0.2+bm,<0.0.3",
                          ],
                      ),
                  ),
              ]
          )
  
file_path: tvm/tests/python/testing/test_gen_requirements.py
imports: import collections
  import contextlib
  import os
  import sys
  import tvm
  import tvm.testing
  import pytest
label_desc: Use image node_id 4 for calling a global function with example usage: test_join_requirements() without return types