code: def setup_method(self):
      self.J = np.array([[0.1, 0.2], [-1.0, 1.0], [0.5, 0.2]])
      self.g = np.array([0.8, -2.0])
      self.diag = np.array([1.0, 2.0])
  
file_path: scipy/scipy/optimize/tests/test_lsq_common.py
imports: from numpy.testing import assert_, assert_allclose, assert_equal
  from pytest import raises
  import numpy
  from scipy.optimize._lsq.common import step_size_to_bound, find_active_constraints, make_strictly_feasible, CL_scaling_vector, intersect_trust_region, build_quadratic_1d, minimize_quadratic_1d, evaluate_quadratic, reflective_transformation, left_multiplied_operator, right_multiplied_operator
label_desc: Use image node_id 1 for calling the TestQuadraticFunction obj's underlying member method code with example usage: obj.setup_method() without return types