code: def test_seals_recurse_on_magic_methods(self):
      m = mock.MagicMock()
  
      m.test1.test2["a"].test3 = 4
      m.test1.test3[2:5].test3 = 4
  
      mock.seal(m)
      self.assertEqual(m.test1.test2["a"].test3, 4)
      self.assertEqual(m.test1.test2[2:5].test3, 4)
      with self.assertRaises(AttributeError):
          m.test1.test2["a"].test4
      with self.assertRaises(AttributeError):
          m.test1.test3[2:5].test4
  
imports: import unittest
  from unittest import mock
label_desc: Use image node_id 11 for calling the TestSealable obj's underlying member method code with example usage: obj.test_seals_recurse_on_magic_methods() without return types