class_docstr: Tests for is_independent, which tests a function to be
  independent of its inputs, using Autograd.
class_docstr_tok: ["Tests","for","is_independent",",","which","tests","a","function","to","be","independent","of","its","inputs",",","using","Autograd","."]
docstr: Tests that kwargs are taken into account when checking
  independence of outputs.
docstr_tok: ["Tests","that","kwargs","are","taken","into","account","when","checking","independence","of","outputs","."]
code: def test_kwargs_are_considered(self):
      """Tests that kwargs are taken into account when checking
      independence of outputs."""
      f = lambda x, kw=False: 0.1 * x if kw else 0.2
      jac = qml.jacobian(f, argnum=0)
      args = (0.2,)
      assert is_independent(f, self.interface, args)
      assert not is_independent(f, self.interface, args, {"kw": True})
      assert is_independent(jac, self.interface, args, {"kw": True})
  
imports: import pytest
  import numpy
  from pennylane import numpy
  import pennylane
  from pennylane.math import is_independent
  from pennylane.math.is_independent import _get_random_args
label_desc: Use image node_id 5 for calling the TestIsIndependentAutograd obj's underlying member method code with example usage: obj.test_kwargs_are_considered() without return types