code: def test_dump_skipkeys(self):
      v = {b"invalid_key": False, "valid_key": True}
      with self.assertRaises(TypeError):
          self.json.dumps(v)
  
      s = self.json.dumps(v, skipkeys=True)
      o = self.json.loads(s)
      self.assertIn("valid_key", o)
      self.assertNotIn(b"invalid_key", o)
  
file_path: cpython/Lib/test/test_json/test_dump.py
imports: from io import StringIO
  from test.test_json import PyTest, CTest
  from test.support import bigmemtest, _1G
label_desc: Use image node_id 3 for calling the TestDump obj's underlying member method code with example usage: obj.test_dump_skipkeys() without return types