code: def get_labels_levels(df_levels):
      expected_labels = list(df_levels.columns)
      expected_levels = [
          name for name in df_levels.index.names if name is not None
      ]
      return expected_labels, expected_levels
  
imports: import pytest
  from pandas.core.dtypes.missing import array_equivalent
  import pandas
label_desc: Use image node_id 4 for calling a global function with example usage: get_labels_levels(df_levels) and returns: expected_labels,  expected_levels