code: def test_instances(
      scenario5: Scenario, scenario6: Scenario, scenario7: Scenario
  ) -> None:
      assert scenario5.count_instance_features() == 3
  
      with pytest.raises(
          RuntimeError,
          match="Instances must have the same number of features",
      ):
          scenario6.count_instance_features()
  
      with pytest.raises(
          RuntimeError, match="Instance blub is not specified"
      ):
          scenario7.count_instance_features()
  
file_path: SMAC3/tests/test_scenario/test_scenario.py
imports: from pathlib import Path
  import pytest
  from ConfigSpace import ConfigurationSpace
  from smac import Scenario
label_desc: Use image node_id 14 for calling a global function with example usage: test_instances(scenario5, scenario6, scenario7) without return types