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 operator
  import numpy
  import pytest
  from pandas._libs import lib
  from pandas.core.dtypes.cast import find_common_type
  from pandas import CategoricalDtype, CategoricalIndex, DatetimeTZDtype, Index, MultiIndex, PeriodDtype, RangeIndex, Series, Timestamp
  import pandas._testing
  from pandas.api.types import is_signed_integer_dtype, pandas_dtype
label_desc: Use image node_id 1 for calling a global function with example usage: equal_contents(arr1, arr2) and returns: unknown