code: def test_store_dropna(tmp_path, setup_path):
      df_with_missing = DataFrame(
          {"col1": [0.0, np.nan, 2.0], "col2": [1.0, np.nan, np.nan]},
          index=list("abc"),
      )
      df_without_missing = DataFrame(
          {"col1": [0.0, 2.0], "col2": [1.0, np.nan]}, index=list("ac")
      )
  
      # # Test to make sure defaults are to not drop.
      # # Corresponding to Issue 9382
      path = tmp_path / setup_path
      df_with_missing.to_hdf(path, key="df", format="table")
      reloaded = read_hdf(path, "df")
      tm.assert_frame_equal(df_with_missing, reloaded)
  
      path = tmp_path / setup_path
      df_with_missing.to_hdf(
          path, key="df", format="table", dropna=False
      )
      reloaded = read_hdf(path, "df")
      tm.assert_frame_equal(df_with_missing, reloaded)
  
      path = tmp_path / setup_path
      df_with_missing.to_hdf(
          path, key="df", format="table", dropna=True
      )
      reloaded = read_hdf(path, "df")
      tm.assert_frame_equal(df_without_missing, reloaded)
  
imports: import contextlib
  import datetime
  import hashlib
  import tempfile
  import time
  import numpy
  import pytest
  import pandas
  from pandas import DataFrame, DatetimeIndex, Index, MultiIndex, Series, Timestamp, concat, date_range, period_range, timedelta_range
  import pandas._testing
  from pandas.tests.io.pytables.common import _maybe_remove, ensure_clean_store
  from pandas.io.pytables import HDFStore, read_hdf
label_desc: Use image node_id 9 for calling a global function with example usage: test_store_dropna(tmp_path, setup_path) without return types