code: def set_equality(list1: list, list2: list) -> bool:
      """
      Equivalent to set(list1) == set(list2) but checks the set inequality manually for lists containing elements that are
      not hashable.
  
      @param list1: The first list
      @param list2: The second list
  
      @return bool: Whether the two lists are equal when converted to sets
      """
  
      equality = True
      for item in list1:
          if item not in list2:
              equality = False
              break
  
      for item in list2:
          if item not in list1:
              equality = False
              break
  
      return equality
  
imports: import pandas
  from aix360.algorithms.rule_induction.trxf.core.boolean_evaluator import BooleanEvaluator
label_desc: Use image node_id 1 for calling a global function with example usage: set_equality(list1, list2) and returns: equality