code: def test_enable_data_resource_formatter(self, ip):
      # GH#10491
      formatters = ip.instance(
          config=ip.config
      ).display_formatter.formatters
      mimetype = "application/vnd.dataresource+json"
  
      with cf.option_context("display.html.table_schema", True):
          assert "application/vnd.dataresource+json" in formatters
          assert formatters[mimetype].enabled
  
      # still there, just disabled
      assert "application/vnd.dataresource+json" in formatters
      assert not formatters[mimetype].enabled
  
      # able to re-set
      with cf.option_context("display.html.table_schema", True):
          assert "application/vnd.dataresource+json" in formatters
          assert formatters[mimetype].enabled
          # smoke test that it works
          ip.instance(config=ip.config).display_formatter.format(cf)
  
file_path: pandas/pandas/tests/io/formats/test_ipython_compat.py
imports: import numpy
  import pandas._config.config
  from pandas import DataFrame, MultiIndex
label_desc: Use image node_id 5 for calling the TestTableSchemaRepr obj's underlying member method code with example usage: obj.test_enable_data_resource_formatter(ip) without return types