code: def test_all_registered():
      # This test makes sure that all of the subcommands defined in the
      # rasterio.rio_commands entry-point are actually registered to the main
      # cli group.
      for ep in iter_entry_points("rasterio.rio_commands"):
          assert ep.name in main_group.commands
  
imports: from pkg_resources import iter_entry_points
  import rasterio
  from rasterio.rio.main import main_group
label_desc: Use image node_id 2 for calling a global function with example usage: test_all_registered() without return types