docstr: Check correct result regardless of whether default args are provided.
docstr_tok: ["Check","correct","result","regardless","of","whether","default","args","are","provided","."]
code: def test_optional_args_read_in_correct_order(self):
      """Check correct result regardless of whether default args are provided."""
      test_layer = self.TestLayerOptionals()
      # Dict inputs.
      outputs_1 = test_layer({"x1": self.x})["y"]
      outputs_1_2 = test_layer({"x1": self.x, "x2": self.x})["y"]
      outputs_1_3 = test_layer({"x1": self.x, "x3": self.x})["y"]
      outputs_1_2_3 = test_layer(
          {"x1": self.x, "x2": self.x, "x3": self.x}
      )["y"]
      self.assertAllClose(outputs_1, self.x)
      self.assertAllClose(outputs_1_2, 3.0 * self.x)
      self.assertAllClose(outputs_1_3, 4.0 * self.x)
      self.assertAllClose(outputs_1_2_3, 6.0 * self.x)
  
imports: from absl.testing import parameterized
  from ddsp.training import nn
  import numpy
  import tensorflow.compat.v2
label_desc: Use image node_id 8 for calling the DictLayerTest obj's underlying member method code with example usage: obj.test_optional_args_read_in_correct_order() without return types