code: def test_change_es_dataframe_schema(df):
      df.ww.init(index="id", name="table")
      es = EntitySet("es", dataframes={"table": (df,)})
  
      assert es["table"].ww.index == "id"
  
      es["table"].ww.set_index("category")
      assert es["table"].ww.index == "category"
  
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 12 for calling a global function with example usage: test_change_es_dataframe_schema(df) without return types