docstr: Run a collection of tests using the specified method.
  
  The name is used to determine some optional arguments.
docstr_tok: ["Run","a","collection","of","tests","using","the","specified","method",".","The","name","is","used","to","determine","some","optional","arguments","."]
code: def run_collection(
      self,
      collection,
      method,
      name,
      smoothness=None,
      known_fail=None,
      xtol=4 * _FLOAT_EPS,
      rtol=4 * _FLOAT_EPS,
      **kwargs,
  ):
      r"""Run a collection of tests using the specified method.
  
      The name is used to determine some optional arguments."""
      tests = get_tests(collection, smoothness=smoothness)
      self.run_tests(
          tests,
          method,
          name,
          xtol=xtol,
          rtol=rtol,
          known_fail=known_fail,
          **kwargs,
      )
  
imports: import pytest
  from math import sqrt, exp, sin, cos
  from functools import lru_cache
  from numpy.testing import assert_warns, assert_, assert_allclose, assert_equal, assert_array_equal, suppress_warnings
  import numpy
  from numpy import finfo, power, nan, isclose
  from scipy.optimize import zeros, newton, root_scalar
  from scipy._lib._util import getfullargspec_no_self
  from scipy.optimize._tstutils import get_tests, functions, fstrings
label_desc: Use image node_id 6 for calling the TestBasic obj's underlying member method code with example usage: obj.run_collection(collection, method, name, smoothness, known_fail, xtol, rtol) without return types