code: def __init__(
      self, func, args=(), tol=1.48e-8, maxiter=500, full_output=0
  ):
      self.func = func
      self.args = args
      self.tol = tol
      self.maxiter = maxiter
      self._mintol = 1.0e-11
      self._cg = 0.3819660
      self.xmin = None
      self.fval = None
      self.iter = 0
      self.funcalls = 0
  
imports: import warnings
  import sys
  from numpy import atleast_1d, eye, argmin, zeros, shape, squeeze, asarray, sqrt, Inf, asfarray, isinf
  import numpy
  from .linesearch import line_search_wolfe1, line_search_wolfe2, line_search_wolfe2, LineSearchWarning
  from ._numdiff import approx_derivative
  from scipy._lib._util import getfullargspec_no_self
  from scipy._lib._util import MapWrapper
  from scipy.optimize._differentiable_functions import ScalarFunction, FD_METHODS
label_desc: Use image node_id 1 to create a new Brent object  with example: obj = Brent(func, args, tol, maxiter, full_output)