code: def test_using_config_file(
      three_experiments_family_same_name, capsys, tmp_path
  ):
      """Test status using `--config`."""
      orion.core.cli.main(["status"])
  
      captured = capsys.readouterr().out
  
      assert "test_single_exp_child-v1" in captured
  
      config_path = str(tmp_path / "config.yaml")
  
      with OrionState() as cfg:
          with open(config_path, "w") as f:
              yaml.dump(
                  {
                      "storage": {
                          "database": {
                              "type": "pickleddb",
                              "host": cfg.storage._db.host,
                          }
                      }
                  },
                  f,
              )
  
          orion.core.cli.main(["status", "--config", config_path])
  
          captured = capsys.readouterr().out
  
          assert "test_single_exp_child-v1" not in captured
  
          ExperimentBuilder(cfg.storage).build(
              name="test", space={"x": "uniform(0, 1)"}
          )
  
          orion.core.cli.main(["status", "--config", config_path])
  
          captured = capsys.readouterr().out
  
          assert captured == "test-v1\n=======\nempty\n\n\n"
  
imports: import os
  import pytest
  import yaml
  import orion.core.cli
  from orion.core.io.experiment_builder import ExperimentBuilder
  from orion.testing.state import OrionState
label_desc: Use image node_id 45 for calling a global function with example usage: test_using_config_file(three_experiments_family_same_name, capsys, tmp_path) without return types