code: def test_read_mol2():
      data_path_1 = os.path.join(this_dir, "data", "40_mol2_files.mol2")
      data_path_2 = os.path.join(
          this_dir, "data", "40_mol2_files.mol2.gz"
      )
      data_path_3 = os.path.join(this_dir, "data", "empty_line.mol2")
  
      for data_path in (data_path_1, data_path_2):
          pdmol = PandasMol2().read_mol2(data_path)
          assert pdmol.df.shape == (65, 9)
          assert pdmol.code == "ZINC38611810"
  
          expect = [
              "atom_id",
              "atom_name",
              "x",
              "y",
              "z",
              "atom_type",
              "subst_id",
              "subst_name",
              "charge",
          ]
          assert expect == list(pdmol.df.columns)
          assert len(pdmol.mol2_text) == 6469
          assert pdmol.mol2_path == data_path
  
      pdmol = PandasMol2().read_mol2(data_path_3)
      assert pdmol.df.shape == (59, 9)
  
file_path: biopandas/biopandas/mol2/tests/test_pandas_mol2.py
imports: import os
  from biopandas.mol2 import PandasMol2
  from biopandas.mol2.mol2_io import split_multimol2
  from biopandas.testutils import assert_raises
label_desc: Use image node_id 1 for calling a global function with example usage: test_read_mol2() without return types