code: def test_dataframe(df_schema):
      df = pd.DataFrame([{"sample": "foo", "condition": "bar"}])
      validate(df, str(df_schema), False)
      assert sorted(df.columns) == sorted(["sample", "condition"])
      validate(df, str(df_schema))
      assert sorted(df.columns) == sorted(
          ["sample", "condition", "case", "date"]
      )
      assert df.case.loc[0]
  
file_path: snakemake/tests/test_schema.py
imports: import json
  import pytest
  from snakemake.utils import validate
  import pandas
label_desc: Use image node_id 9 for calling a global function with example usage: test_dataframe(df_schema) without return types