code: def test_frontdoor_num_variables_error(
      self, Estimator, num_treatments, num_frontdoor_variables
  ):
      estimator_tester = SimpleEstimator(
          error_tolerance=0,
          Estimator=Estimator,
          identifier_method="frontdoor",
      )
      with pytest.raises((ValueError, Exception)):
          estimator_tester.average_treatment_effect_testsuite(
              num_common_causes=[1, 1],
              num_instruments=[0, 0],
              num_effect_modifiers=[0, 0],
              num_treatments=num_treatments,
              num_frontdoor_variables=num_frontdoor_variables,
              treatment_is_binary=[True],
              outcome_is_binary=[False],
              confidence_intervals=[
                  True,
              ],
              test_significance=[
                  False,
              ],
              method_params={
                  "num_simulations": 10,
                  "num_null_simulations": 10,
              },
          )
  
file_path: dowhy/tests/causal_estimators/test_two_stage_regression_estimator.py
imports: import numpy
  import pandas
  import pytest
  from pytest import mark
  from dowhy import CausalModel
  from dowhy.causal_estimators.two_stage_regression_estimator import TwoStageRegressionEstimator
  from .base import SimpleEstimator
label_desc: Use image node_id 3 for calling the TestTwoStageRegressionEstimator obj's underlying member method code with example usage: obj.test_frontdoor_num_variables_error(Estimator, num_treatments, num_frontdoor_variables) without return types