code: def require_dataframe_has_columns(name, df, columns):
      if not set(columns).issubset(df.columns):
          raise ValueError(
              f"{name}: expected {comma_sep(columns)} columns, found: {comma_sep(df.columns)}"
          )
  
imports: import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: require_dataframe_has_columns(name, df, columns) without return types