code: def test_list_jumpstart_frameworks(
      patched_generate_jumpstart_models: Mock,
      patched_get_model_specs: Mock,
      patched_get_manifest: Mock,
  ):
      patched_get_model_specs.side_effect = get_prototype_model_spec
      patched_get_manifest.side_effect = (
          lambda region, *args, **kwargs: get_prototype_manifest(region)
      )
      patched_generate_jumpstart_models.side_effect = (
          _generate_jumpstart_model_versions
      )
  
      assert list_jumpstart_frameworks() == sorted(
          [
              "catboost",
              "huggingface",
              "lightgbm",
              "mxnet",
              "pytorch",
              "sklearn",
              "tensorflow",
              "xgboost",
          ]
      )
  
      patched_generate_jumpstart_models.assert_called_once()
      patched_get_manifest.assert_called_once()
      patched_get_model_specs.assert_not_called()
  
      patched_get_model_specs.reset_mock()
      patched_get_manifest.reset_mock()
      patched_generate_jumpstart_models.reset_mock()
  
      kwargs = {
          "filter": "task is not ic",
          "region": "sa-east-1",
      }
      assert list_jumpstart_frameworks(**kwargs) == sorted(
          [
              "catboost",
              "huggingface",
              "lightgbm",
              "mxnet",
              "pytorch",
              "sklearn",
              "xgboost",
          ]
      )
  
      patched_generate_jumpstart_models.assert_called_once_with(
          **kwargs,
          sagemaker_session=DEFAULT_JUMPSTART_SAGEMAKER_SESSION,
      )
      patched_get_manifest.assert_called_once()
      patched_get_model_specs.assert_not_called()
  
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 3 for calling a global function with example usage: test_list_jumpstart_frameworks(patched_generate_jumpstart_models, patched_get_model_specs, patched_get_manifest) without return types