code: def test_old_dcc():
      with warns(
          UserWarning,
          match="dash_core_components package is deprecated",
      ):
          import dash_core_components as _dcc
  
          old_dir = filter_dir(_dcc)
          new_dir = filter_dir(dcc)
  
          assert old_dir == new_dir
  
imports: from pytest import warns
  from dash import dcc, dash_table
label_desc: Use image node_id 2 for calling a global function with example usage: test_old_dcc() without return types