code: def assert_labels_dropped(frame, labels, axis):
      axis = frame._get_axis_number(axis)
      for label in labels:
          df_dropped = frame._drop_labels_or_levels(label, axis=axis)
  
          if axis == 0:
              assert label in frame.columns
              assert label not in df_dropped.columns
          else:
              assert label in frame.index
              assert label not in df_dropped.index
  
imports: import pytest
  from pandas.core.dtypes.missing import array_equivalent
  import pandas
label_desc: Use image node_id 21 for calling a global function with example usage: assert_labels_dropped(frame, labels, axis) without return types