code: def test_has_columns():
      df_1 = pd.DataFrame(dict(a=[1, 2, 3]))
      df_2 = pd.DataFrame(dict(b=[7, 8, 9], a=[1, 2, 3]))
  
      assert has_columns(df_1, ["a"])
      assert has_columns(df_2, ["a"])
      assert has_columns(df_2, ["a", "b"])
      assert not has_columns(df_2, ["a", "b", "c"])
  
file_path: recommenders/tests/unit/recommenders/datasets/test_pandas_df_utils.py
imports: import os
  import numpy
  import pandas
  import pytest
  from tempfile import TemporaryDirectory
  from recommenders.datasets.pandas_df_utils import filter_by, LibffmConverter, has_same_base_dtype, has_columns, lru_cache_df, negative_feedback_sampler
label_desc: Use image node_id 5 for calling a global function with example usage: test_has_columns() without return types