class_docstr: Tests for is_independent, which tests a function to be
  independent of its inputs, using Tensorflow.
class_docstr_tok: ["Tests","for","is_independent",",","which","tests","a","function","to","be","independent","of","its","inputs",",","using","Tensorflow","."]
docstr: Tests that an independent function is correctly detected as such.
docstr_tok: ["Tests","that","an","independent","function","is","correctly","detected","as","such","."]
code: def test_independent(self, func, args):
      """Tests that an independent function is correctly detected as such."""
      args = tuple(tf.Variable(_arg) for _arg in args)
      assert is_independent(func, self.interface, args)
  
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 2 for calling the TestIsIndependentTensorflow obj's underlying member method code with example usage: obj.test_independent(func, args) without return types