code: def dumps(self, arg, proto=None, **kwargs):
      return pickletools.optimize(pickle.dumps(arg, proto, **kwargs))
  
file_path: cpython/Lib/test/test_pickletools.py
imports: import pickle
  import pickletools
  from test import support
  from test.pickletester import AbstractPickleTests
  import doctest
  import unittest
label_desc: Use image node_id 1 for calling the OptimizedPickleTests obj's underlying member method code with example usage: obj.dumps(arg, proto) and returns: pickletools