class_docstr: Unit tests for the pwc function
class_docstr_tok: ["Unit","tests","for","the","pwc","function"]
docstr: Tests that the pwc function returns a callable with arguments (params, t)
docstr_tok: ["Tests","that","the","pwc","function","returns","a","callable","with","arguments","(","params",",","t",")"]
code: def test_pwc_returns_callable(self):
      """Tests that the pwc function returns a callable with arguments (params, t)"""
      c = qml.pulse.pwc(10)
      argspec = inspect.getfullargspec(c)
  
      assert callable(c)
      assert argspec.args == ["params", "t"]
  
imports: import inspect
  from functools import partial
  import numpy
  import pytest
  import pennylane
  from pennylane.pulse.parametrized_hamiltonian import ParametrizedHamiltonian
label_desc: Use image node_id 1 for calling the TestPWC obj's underlying member method code with example usage: obj.test_pwc_returns_callable() without return types