code: def test_estimate_shots(coefficients, err, shots_, var):
      r"""Test that the estimate_shots function returns the correct number of measurements."""
      m_novar = qml.resource.estimate_shots(coefficients, error=err)
      m_var = qml.resource.estimate_shots(
          coefficients, variances=var, error=err
      )
  
      assert m_novar == shots_
      assert m_var == shots_
  
imports: import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: test_estimate_shots(coefficients, err, shots_, var) without return types