code: def dump_stmt_strings(stmts, fname):
      
      with open(fname, 'wb') as fh:
          for st in stmts:
              fh.write(('%s\n' % st).encode('utf-8'))
docs: Save printed statements in a file.
  
      Parameters
      ----------
      stmts_in : list[indra.statements.Statement]
          A list of statements to save in a text file.
      fname : Optional[str]
          The name of a text file to save the printed statements into.