code: def _assert_same_contents(join_chunk, source):
      NA_SENTINEL = -1234567  # drop_duplicates not so NA-friendly...
  
      jvalues = join_chunk.fillna(NA_SENTINEL).drop_duplicates().values
      svalues = source.fillna(NA_SENTINEL).drop_duplicates().values
  
      rows = {tuple(row) for row in jvalues}
      assert len(rows) == len(source)
      assert all(tuple(row) in rows for row in svalues)
  
imports: import re
  import numpy
  import pytest
  import pandas.util._test_decorators
  import pandas
  from pandas import Categorical, DataFrame, Index, MultiIndex, Series, Timestamp, bdate_range, concat, merge, option_context
  import pandas._testing
label_desc: Use image node_id 4 for calling a global function with example usage: _assert_same_contents(join_chunk, source) without return types