code: def test_TracesAutoAxes(self) -> None:
      for optimization_direction in [
          "minimize",
          "maximize",
          "passthrough",
      ]:
          plot = optimization_trace_single_method_plotly(
              np.array([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]),
              list(self.model.metric_names)[0],
              optimization_direction=optimization_direction,
              autoset_axis_limits=True,
          )
          self.assertIsNone(plot.layout.xaxis.range)  # pyre-ignore
          if optimization_direction == "minimize":
              self.assertAlmostEqual(plot.layout.yaxis.range[0], 0.525)
              self.assertAlmostEqual(plot.layout.yaxis.range[1], 6.225)
          elif optimization_direction == "maximize":
              self.assertAlmostEqual(plot.layout.yaxis.range[0], 0.775)
              self.assertAlmostEqual(plot.layout.yaxis.range[1], 6.475)
          else:
              self.assertIsNone(plot.layout.yaxis.range)
  
file_path: Ax/ax/plot/tests/test_traces.py
imports: import numpy
  import plotly.graph_objects
  from ax.modelbridge.registry import Models
  from ax.plot.base import AxPlotConfig
  from ax.plot.trace import optimization_trace_single_method, optimization_trace_single_method_plotly, plot_objective_value_vs_trial_index
  from ax.service.utils.report_utils import exp_to_df
  from ax.utils.common.testutils import TestCase
  from ax.utils.testing.core_stubs import get_branin_experiment
  from ax.utils.testing.mock import fast_botorch_optimize
label_desc: Use image node_id 3 for calling the TracesTest obj's underlying member method code with example usage: obj.test_TracesAutoAxes() without return types