code: def test_same_boundary_inner_outer(self):
      source = textwrap.dedent(
          """\
              Subject: XX
              From: xx@xx.dk
              To: XX
              Mime-version: 1.0
              Content-type: multipart/mixed;
                 boundary="MS_Mac_OE_3071477847_720252_MIME_Part"
  
              --MS_Mac_OE_3071477847_720252_MIME_Part
              Content-type: multipart/alternative;
                 boundary="MS_Mac_OE_3071477847_720252_MIME_Part"
  
              --MS_Mac_OE_3071477847_720252_MIME_Part
              Content-type: text/plain; charset="ISO-8859-1"
              Content-transfer-encoding: quoted-printable
  
              text
  
              --MS_Mac_OE_3071477847_720252_MIME_Part
              Content-type: text/html; charset="ISO-8859-1"
              Content-transfer-encoding: quoted-printable
  
              <HTML></HTML>
  
              --MS_Mac_OE_3071477847_720252_MIME_Part--
  
              --MS_Mac_OE_3071477847_720252_MIME_Part
              Content-type: image/gif; name="xx.gif";
              Content-disposition: attachment
              Content-transfer-encoding: base64
  
              Some removed base64 encoded chars.
  
              --MS_Mac_OE_3071477847_720252_MIME_Part--
  
              """
      )
      # XXX better would be to actually detect the duplicate.
      with self._raise_point(errors.StartBoundaryNotFoundDefect):
          msg = self._str_msg(source)
      if self.raise_expected:
          return
      inner = msg.get_payload(0)
      self.assertTrue(hasattr(inner, "defects"))
      self.assertEqual(len(self.get_defects(inner)), 1)
      self.assertIsInstance(
          self.get_defects(inner)[0], errors.StartBoundaryNotFoundDefect
      )
  
imports: import textwrap
  import unittest
  import contextlib
  from email import policy
  from email import errors
  from test.test_email import TestEmailBase
label_desc: Use image node_id 2 for calling the TestDefectsBase obj's underlying member method code with example usage: obj.test_same_boundary_inner_outer() without return types