docstr: Creates and prices swap from a dictionary representation.
docstr_tok: ["Creates","and","prices","swap","from","a","dictionary","representation","."]
code: def test_create_constructor_args_price(self):
      """Creates and prices swap from a dictionary representation."""
  
      swaps_dict = (
          interest_rate_swap.InterestRateSwap.create_constructor_args(
              [self._swap_1, self._swap_2, self._swap_1]
          )
      )
      market = market_data.MarketDataDict(self._market_data_dict)
      swaps = interest_rate_swap.InterestRateSwap(
          **list(swaps_dict.values())[0]
      )
      price1 = swaps.price(market)
      expected1 = np.array(
          [7655.98694587, 6569.04475892, 7655.98694587]
      )
      self.assertAllClose(price1, expected1)
  
file_path: tf-quant-finance/tf_quant_finance/experimental/pricing_platform/framework/rate_instruments/interest_rate_swap/interest_rate_swap_test.py
imports: from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  import tf_quant_finance
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 6 for calling the InterestRateSwapTest obj's underlying member method code with example usage: obj.test_create_constructor_args_price() without return types