code: def test_set_content_with_cm(self):
      m = self._str_msg("")
      cm = self._TestContentManager()
      m.set_content(content_manager=cm)
      self.assertEqual(cm.msg, m)
      self.assertEqual(cm.args, ())
      self.assertEqual(cm.kw, {})
      m.set_content("foo", content_manager=cm, bar=1, k=2)
      self.assertEqual(cm.msg, m)
      self.assertEqual(cm.args, ("foo",))
      self.assertEqual(cm.kw, dict(bar=1, k=2))
  
imports: import unittest
  import textwrap
  from email import policy, message_from_string
  from email.message import EmailMessage, MIMEPart
  from test.test_email import TestEmailBase, parameterize
label_desc: Use image node_id 6 for calling the TestEmailMessageBase obj's underlying member method code with example usage: obj.test_set_content_with_cm() without return types