code: def test_equals_list_array(val):
      # GH20676 Verify equals operator for list of Numpy arrays
      arr = np.array([1, 2])
      s1 = Series([arr, arr])
      s2 = s1.copy()
      assert s1.equals(s2)
  
      s1[1] = val
  
      cm = (
          tm.assert_produces_warning(
              FutureWarning, check_stacklevel=False
          )
          if isinstance(val, str) and not np_version_gte1p25
          else nullcontext()
      )
      with cm:
          assert not s1.equals(s2)
  
file_path: pandas/pandas/tests/series/methods/test_equals.py
imports: from contextlib import nullcontext
  import copy
  import numpy
  import pytest
  from pandas._libs.missing import is_matching_na
  from pandas.compat.numpy import np_version_gte1p25
  from pandas.core.dtypes.common import is_float
  from pandas import Index, MultiIndex, Series
  import pandas._testing
label_desc: Use image node_id 2 for calling a global function with example usage: test_equals_list_array(val) without return types