code: def test_duplicated_with_nan(val):
      # GH5873
      mi = MultiIndex.from_arrays([[101, val], [3.5, np.nan]])
      assert not mi.has_duplicates
  
      tm.assert_numpy_array_equal(
          mi.duplicated(), np.zeros(2, dtype="bool")
      )
  
imports: from itertools import product
  import numpy
  import pytest
  from pandas._libs import hashtable, index
  from pandas import NA, DatetimeIndex, Index, MultiIndex, Series
  import pandas._testing
label_desc: Use image node_id 13 for calling a global function with example usage: test_duplicated_with_nan(val) without return types