code: def test_nonexpected_column():
      ppdb = PandasPdb()
      ppdb.read_pdb(TESTDATA_FILENAME)
      ppdb.df["HETATM"]["test"] = pd.Series(
          "test", index=ppdb.df["HETATM"].index
      )
      with warnings.catch_warnings(record=True) as w:
          ppdb.to_pdb(path=OUTFILE, records=["HETATM"])
      with open(OUTFILE, "r") as f:
          f1 = f.read()
      os.remove(OUTFILE)
      assert f1 == hetatm
  
file_path: biopandas/biopandas/pdb/tests/test_write_pdb.py
imports: from biopandas.pdb import PandasPdb
  import warnings
  import pandas
  import os
label_desc: Use image node_id 2 for calling a global function with example usage: test_nonexpected_column() without return types