code: def test_load_ignore(
      other_empty_database,
      pkl_experiments_and_benchmarks,
      testing_helpers,
  ):
      """Test load all database with --resolve ignore"""
      storage, cfg_path = other_empty_database
      loaded_db = storage._db
      testing_helpers.check_empty_db(loaded_db)
  
      execute(f"db load {pkl_experiments_and_benchmarks} -c {cfg_path}")
      testing_helpers.assert_tested_db_structure(loaded_db)
      testing_helpers.assert_tested_trial_status(loaded_db)
  
      # Change something in PKL file to check that changes are ignored
      src_db = PickledDB(pkl_experiments_and_benchmarks)
      testing_helpers.assert_tested_trial_status(src_db)
      for trial in src_db.read("trials"):
          trial["status"] = "new"
          src_db.write("trials", trial, query={"_id": trial["_id"]})
      testing_helpers.assert_tested_db_structure(src_db)
      # Trials status checking should fail for PKL file
      with pytest.raises(AssertionError):
          testing_helpers.assert_tested_trial_status(src_db)
      # ... And pass for a specific count
      testing_helpers.assert_tested_trial_status(
          src_db, counts={"new": 24}
      )
  
      execute(
          f"db load {pkl_experiments_and_benchmarks} -r ignore -c {cfg_path}"
      )
      # Duplicated data should be ignored, so we must expect same data.
      testing_helpers.assert_tested_db_structure(loaded_db)
      # Trials status should have not been modified in dst database.
      testing_helpers.assert_tested_trial_status(loaded_db)
  
file_path: orion/tests/functional/commands/test_db_load.py
imports: import os
  import pytest
  import orion.core.cli
  from orion.core.io.database.pickleddb import PickledDB
  from orion.storage.base import setup_storage
label_desc: Use image node_id 5 for calling a global function with example usage: test_load_ignore(other_empty_database, pkl_experiments_and_benchmarks, testing_helpers) without return types