code: def test_plot_residuals_exception_when_residuals_are_not_provided():
      """
      Test exception if `residuals` argument is None and also `y_true` and `y_pred`
      are None."
      """
      err_msg = re.escape(
          "If `residuals` argument is None then, `y_true` and `y_pred` must be provided."
      )
      with pytest.raises(ValueError, match=err_msg):
          plot_residuals()
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_plot_residuals_exception_when_residuals_are_not_provided() without return types