code: def dump_statements(stmts, fname, protocol=4):
      
      logger.info('Dumping %d statements into %s...' % (len(stmts), fname))
      with open(fname, 'wb') as fh:
          pickle.dump(stmts, fh, protocol=protocol)
docs: Dump a list of statements into a pickle file.
  
      Parameters
      ----------
      fname : str
          The name of the pickle file to dump statements into.
      protocol : Optional[int]
          The pickle protocol to use (use 2 for Python 2 compatibility).
          Default: 4