code: def test_assign_nested_attr(self):
      self.assertEqual(self.layout.updatemenus, ())
  
      # Initialize empty updatemenus
      self.layout.updatemenus = [{}, {}]
      self.assertEqual(
          self.layout["updatemenus"],
          (go.layout.Updatemenu(), go.layout.Updatemenu()),
      )
  
      self.layout.updatemenus[1].font.family = "courier"
      d1, d2 = strip_dict_params(self.layout, self.expected_layout1)
      assert d1 == d2
  
imports: from unittest import TestCase
  import plotly.graph_objs
  from plotly.tests.utils import strip_dict_params
label_desc: Use image node_id 3 for calling the TestAssignCompoundArray obj's underlying member method code with example usage: obj.test_assign_nested_attr() without return types