class_docstr: Tests for the Morsel object.
class_docstr_tok: ["Tests","for","the","Morsel","object","."]
code: def test_pickle(self):
      morsel_a = cookies.Morsel()
      morsel_a.set("foo", "bar", "baz")
      morsel_a.update(
          {
              "version": 2,
              "comment": "foo",
          }
      )
      for proto in range(pickle.HIGHEST_PROTOCOL + 1):
          with self.subTest(proto=proto):
              morsel_b = pickle.loads(pickle.dumps(morsel_a, proto))
              self.assertIsInstance(morsel_b, cookies.Morsel)
              self.assertEqual(morsel_b, morsel_a)
              self.assertEqual(str(morsel_b), str(morsel_a))
  
imports: import copy
  import unittest
  import doctest
  from http import cookies
  import pickle
label_desc: Use image node_id 10 for calling the MorselTests obj's underlying member method code with example usage: obj.test_pickle() without return types