docstr: Creates ir swap from proto and tests pricing method.
docstr_tok: ["Creates","ir","swap","from","proto","and","tests","pricing","method","."]
code: def test_default_config(self):
      """Creates ir swap from proto and tests pricing method."""
      am_option = american_option.AmericanOption.from_protos(
          [
              self._american_option_1,
              self._american_option_2,
              self._american_option_3,
          ]
      )
  
      default_config = american_option.AmericanOptionConfig()
      with self.subTest("Batching"):
          self.assertLen(am_option, 2)
      with self.subTest("Seed"):
          self.assertAllEqual(am_option[0]._seed, default_config.seed)
      with self.subTest("Model"):
          self.assertAllEqual(am_option[0]._model, default_config.model)
      with self.subTest("NumSamples"):
          self.assertAllEqual(
              am_option[0]._num_samples, default_config.num_samples
          )
      with self.subTest("NumExerciseTimes"):
          self.assertAllEqual(
              am_option[0]._num_exercise_times,
              default_config.num_exercise_times,
          )
      with self.subTest("NumCalibrationSamples"):
          self.assertAllEqual(
              am_option[0]._num_calibration_samples,
              default_config.num_calibration_samples,
          )
  
file_path: tf-quant-finance/tf_quant_finance/experimental/pricing_platform/framework/equity_instruments/american_option/american_option_impl_test.py
imports: import numpy
  import tensorflow.compat.v2
  import tf_quant_finance
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 3 for calling the AmericanEquityOptionTest obj's underlying member method code with example usage: obj.test_default_config() without return types