code: def test_reset_index_dtypes_on_empty_series_with_multiindex(
      array, dtype, using_infer_string
  ):
      # GH 19602 - Preserve dtype on empty Series with MultiIndex
      idx = MultiIndex.from_product([[0, 1], [0.5, 1.0], array])
      result = Series(dtype=object, index=idx)[:0].reset_index().dtypes
      exp = "string" if using_infer_string else object
      expected = Series(
          {
              "level_0": np.int64,
              "level_1": np.float64,
              "level_2": exp if dtype == object else dtype,
              0: object,
          }
      )
      tm.assert_series_equal(result, expected)
  
file_path: pandas/pandas/tests/series/methods/test_reset_index.py
imports: from datetime import datetime
  import numpy
  import pytest
  import pandas
  from pandas import DataFrame, Index, MultiIndex, RangeIndex, Series, date_range, option_context
  import pandas._testing
label_desc: Use image node_id 1 for calling a global function with example usage: test_reset_index_dtypes_on_empty_series_with_multiindex(array, dtype, using_infer_string) without return types