code: def test_restrict_dataframe(self):
      df = pd.DataFrame({"id": [1, 2, 3] * 2})
  
      df_restricted = dataframe_functions.restrict_input_to_index(
          df, "id", [2]
      )
      self.assertEqual(list(df_restricted.id), [2, 2])
  
      df_restricted2 = dataframe_functions.restrict_input_to_index(
          df, "id", [1, 2, 3]
      )
      self.assertTrue(df_restricted2.equals(df))
  
imports: import warnings
  from unittest import TestCase
  import numpy
  import pandas
  from pandas.testing import assert_frame_equal, assert_series_equal
  from tests.fixtures import warning_free
  from tsfresh import extract_relevant_features
  from tsfresh.feature_extraction.settings import MinimalFCParameters
  from tsfresh.utilities import dataframe_functions
label_desc: Use image node_id 1 for calling the RestrictTestCase obj's underlying member method code with example usage: obj.test_restrict_dataframe() without return types