code: def equal_contents(arr1, arr2) -> bool:
      """
      Checks if the set of unique elements of arr1 and arr2 are equivalent.
      """
      return frozenset(arr1) == frozenset(arr2)
  
imports: from datetime import datetime
  import numpy
  import pytest
  import pandas
  from pandas import Index, Series
  import pandas._testing
  from pandas.core.algorithms import safe_sort
label_desc: Use image node_id 1 for calling a global function with example usage: equal_contents(arr1, arr2) and returns: unknown