code: def test_list_jumpstart_models_old_models(
      self,
      patched_get_model_specs: Mock,
      patched_get_manifest: Mock,
  ):
      def get_manifest_more_versions(
          region: str = JUMPSTART_DEFAULT_REGION_NAME,
      ):
          return [
              get_header_from_base_header(
                  region=region, model_id=model_id, version=version
              )
              for model_id in PROTOTYPICAL_MODEL_SPECS_DICT.keys()
              for version in ["2.400.0", "1.4.0", "2.5.1", "1.300.0"]
          ]
  
      patched_get_manifest.side_effect = (
          lambda region, *args, **kwargs: get_manifest_more_versions(
              region
          )
      )
  
      assert [
          ("catboost-classification-model", "2.400.0"),
          ("catboost-classification-model", "2.5.1"),
          ("catboost-classification-model", "1.300.0"),
          ("catboost-classification-model", "1.4.0"),
          ("huggingface-spc-bert-base-cased", "2.400.0"),
          ("huggingface-spc-bert-base-cased", "2.5.1"),
          ("huggingface-spc-bert-base-cased", "1.300.0"),
          ("huggingface-spc-bert-base-cased", "1.4.0"),
          ("lightgbm-classification-model", "2.400.0"),
          ("lightgbm-classification-model", "2.5.1"),
          ("lightgbm-classification-model", "1.300.0"),
          ("lightgbm-classification-model", "1.4.0"),
          ("mxnet-semseg-fcn-resnet50-ade", "2.400.0"),
          ("mxnet-semseg-fcn-resnet50-ade", "2.5.1"),
          ("mxnet-semseg-fcn-resnet50-ade", "1.300.0"),
          ("mxnet-semseg-fcn-resnet50-ade", "1.4.0"),
          ("pytorch-eqa-bert-base-cased", "2.400.0"),
          ("pytorch-eqa-bert-base-cased", "2.5.1"),
          ("pytorch-eqa-bert-base-cased", "1.300.0"),
          ("pytorch-eqa-bert-base-cased", "1.4.0"),
          ("sklearn-classification-linear", "2.400.0"),
          ("sklearn-classification-linear", "2.5.1"),
          ("sklearn-classification-linear", "1.300.0"),
          ("sklearn-classification-linear", "1.4.0"),
          (
              "tensorflow-ic-bit-m-r101x1-ilsvrc2012-classification-1",
              "2.400.0",
          ),
          (
              "tensorflow-ic-bit-m-r101x1-ilsvrc2012-classification-1",
              "2.5.1",
          ),
          (
              "tensorflow-ic-bit-m-r101x1-ilsvrc2012-classification-1",
              "1.300.0",
          ),
          (
              "tensorflow-ic-bit-m-r101x1-ilsvrc2012-classification-1",
              "1.4.0",
          ),
          ("xgboost-classification-model", "2.400.0"),
          ("xgboost-classification-model", "2.5.1"),
          ("xgboost-classification-model", "1.300.0"),
          ("xgboost-classification-model", "1.4.0"),
      ] == list_jumpstart_models(
          list_old_models=True, list_versions=True
      )
  
      patched_get_model_specs.assert_not_called()
      patched_get_manifest.assert_called_once()
  
      patched_get_manifest.reset_mock()
      patched_get_model_specs.reset_mock()
  
      assert [
          ("catboost-classification-model", "2.400.0"),
          ("huggingface-spc-bert-base-cased", "2.400.0"),
          ("lightgbm-classification-model", "2.400.0"),
          ("mxnet-semseg-fcn-resnet50-ade", "2.400.0"),
          ("pytorch-eqa-bert-base-cased", "2.400.0"),
          ("sklearn-classification-linear", "2.400.0"),
          (
              "tensorflow-ic-bit-m-r101x1-ilsvrc2012-classification-1",
              "2.400.0",
          ),
          ("xgboost-classification-model", "2.400.0"),
      ] == list_jumpstart_models(
          list_old_models=False, list_versions=True
      )
      assert list_jumpstart_models(
          list_old_models=False, list_versions=True
      ) == list_jumpstart_models(list_versions=True)
  
imports: from __future__ import absolute_import
  import json
  from unittest import TestCase
  from unittest.mock import Mock, patch
  import pytest
  from sagemaker.jumpstart.constants import DEFAULT_JUMPSTART_SAGEMAKER_SESSION, JUMPSTART_DEFAULT_REGION_NAME
  from sagemaker.jumpstart.filters import And, Identity, Not, Or
  from tests.unit.sagemaker.jumpstart.constants import PROTOTYPICAL_MODEL_SPECS_DICT
  from tests.unit.sagemaker.jumpstart.utils import get_header_from_base_header, get_prototype_manifest, get_prototype_model_spec
  from sagemaker.jumpstart.notebook_utils import _generate_jumpstart_model_versions, get_model_url, list_jumpstart_frameworks, list_jumpstart_models, list_jumpstart_scripts, list_jumpstart_tasks
label_desc: Use image node_id 6 for calling the ListJumpStartModels obj's underlying member method code with example usage: obj.test_list_jumpstart_models_old_models(patched_get_model_specs, patched_get_manifest) and returns: unknown