code: def test_auto_resolution_does_resolve(
      init_full_x_full_y, monkeypatch
  ):
      """Test that auto-resolution does resolve all conflicts"""
      # Patch cmdloop to avoid autoresolution's prompt
      monkeypatch.setattr("sys.__stdin__.isatty", lambda: True)
  
      name = "full_x_full_y"
      branch = "half_x_no_y_new_w"
      # If autoresolution was not successful, this to fail with a sys.exit without registering the
      # experiment
      orion.core.cli.main(
          (
              "hunt --init-only -n {branch} --branch-from {name} "
              "--enable-evc "
              "./black_box_with_y.py "
              "-x~uniform(0,10) "
              "-w~choices(['a','b'])"
          )
          .format(name=name, branch=branch)
          .split(" ")
      )
  
      experiment = experiment_builder.load(name=branch)
  
      assert experiment.refers["adapter"].configuration == [
          {
              "of_type": "dimensionpriorchange",
              "name": "/x",
              "new_prior": "uniform(0, 10)",
              "old_prior": "uniform(-10, 10)",
          },
          {
              "of_type": "dimensiondeletion",
              "param": {"name": "/y", "type": "real", "value": 1},
          },
          {
              "of_type": "dimensionaddition",
              "param": {
                  "name": "/w",
                  "type": "categorical",
                  "value": None,
              },
          },
      ]
  
imports: import logging
  import os
  import pytest
  import yaml
  import orion.core.cli
  import orion.core.io.experiment_builder
  from orion.storage.base import setup_storage
label_desc: Use image node_id 48 for calling a global function with example usage: test_auto_resolution_does_resolve(init_full_x_full_y, monkeypatch) without return types