class_docstr: Test the AmplitudeAndPhase class that provides callable
  phase/amplitude combinations
class_docstr_tok: ["Test","the","AmplitudeAndPhase","class","that","provides","callable","phase\/amplitude","combinations"]
docstr: Test that when calling amplitude_and_phase, if neither are callable,
  a float is returned instead of an AmplitudeAndPhase object
docstr_tok: ["Test","that","when","calling","amplitude_and_phase",",","if","neither","are","callable",",","a","float","is","returned","instead","of","an","AmplitudeAndPhase","object"]
code: def test_amplitude_and_phase_no_callables(self):
      """Test that when calling amplitude_and_phase, if neither are callable,
      a float is returned instead of an AmplitudeAndPhase object"""
      f = amplitude_and_phase(np.sin, 3 / (2 * np.pi), 4)
      expected_result = 3 * np.sin(4)
  
      assert isinstance(f, float)
      assert f == expected_result
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane.pulse import HardwareHamiltonian, drive, rydberg_interaction
  from pennylane.pulse.hardware_hamiltonian import HardwarePulse, AmplitudeAndPhase, amplitude_and_phase, _reorder_parameters
  from pennylane.pulse.transmon import TransmonSettings
  from pennylane.pulse.rydberg import RydbergSettings
  from pennylane.wires import Wires
label_desc: Use image node_id 1 for calling the TestAmplitudeAndPhase obj's underlying member method code with example usage: obj.test_amplitude_and_phase_no_callables() without return types