code: def test_replace_dataframe_mismatched_index(es):
      if es.dataframe_type != Library.PANDAS:
          pytest.xfail(
              "Only pandas checks whether underlying index matches the Woodwork index",
          )
      df = es["customers"].copy()
      df["id"] = pd.Series([99, 88, 77])
  
      es.replace_dataframe(dataframe_name="customers", df=df)
  
      assert all([77, 99, 88] == es["customers"]["id"])
      assert all([77, 99, 88] == (es["customers"]["id"]).index)
  
imports: from datetime import datetime
  import numpy
  import pandas
  import pytest
  from woodwork.exceptions import TypeConversionError
  from woodwork.logical_types import Boolean, Categorical, Datetime, Double, Integer, NaturalLanguage
  from featuretools.entityset.entityset import LTI_COLUMN_NAME, EntitySet
  from featuretools.tests.testing_utils import to_pandas
  from featuretools.utils.gen_utils import Library, import_or_none, is_instance
label_desc: Use image node_id 37 for calling a global function with example usage: test_replace_dataframe_mismatched_index(es) without return types