docstr: Check that each term in ``terms`` computes an expected number of extra
  rows for the given parameters.
docstr_tok: ["Check","that","each","term","in","``","terms","``","computes","an","expected","number","of","extra","rows","for","the","given","parameters","."]
code: def check_extra_row_calculations(
      self,
      terms,
      all_sessions,
      start_session,
      end_session,
      min_extra_rows,
      expected_extra_rows,
  ):
      """
      Check that each term in ``terms`` computes an expected number of extra
      rows for the given parameters.
      """
      for term in terms:
          result = term.compute_extra_rows(
              all_sessions,
              start_session,
              end_session,
              min_extra_rows,
          )
          self.assertEqual(
              result,
              expected_extra_rows,
              "Expected {} extra_rows from {}, but got {}.".format(
                  expected_extra_rows,
                  term,
                  result,
              ),
          )
  
imports: import pandas
  from pandas.util.testing import assert_frame_equal
  from catalyst.pipeline import Pipeline, CustomFactor, CustomFilter, CustomClassifier
  from catalyst.pipeline.data.testing import TestingDataSet
  from catalyst.pipeline.factors.equity import SimpleMovingAverage
  from catalyst.pipeline.filters.smoothing import All
  from catalyst.testing import CatalystTestCase, parameter_space
  from catalyst.testing.fixtures import WithTradingSessions, WithSeededRandomPipelineEngine
  from catalyst.utils.input_validation import _qualified_name
  from catalyst.utils.numpy_utils import int64_dtype
label_desc: Use image node_id 5 for calling the ComputeExtraRowsTestcase obj's underlying member method code with example usage: obj.check_extra_row_calculations(terms, all_sessions, start_session, end_session, min_extra_rows, expected_extra_rows) without return types