code: def pytest_collection_modifyitems(config, items):
      flags = {"gpu": "--rungpu", "expensive": "--expensive"}
      skips = {
          keyword: pytest.mark.skip(
              reason="need {} option to run".format(flag)
          )
          for keyword, flag in flags.items()
          if not config.getoption(flag)
      }
      for item in items:
          for keyword, skip in skips.items():
              if keyword in item.keywords:
                  item.add_marker(skip)
  
label_desc: Use image node_id 2 for calling a global function with example usage: pytest_collection_modifyitems(config, items) without return types