code: def test_list_registered_model_paginated_errors(store):
      rms = [
          store.create_registered_model(f"RM{i:03}").name
          for i in range(50)
      ]
      # test that providing a completely invalid page token throws
      with pytest.raises(
          MlflowException,
          match=r"Invalid page token, could not base64-decode",
      ) as exception_context:
          store.list_registered_models(
              page_token="evilhax", max_results=20
          )
      assert exception_context.value.error_code == ErrorCode.Name(
          INVALID_PARAMETER_VALUE
      )
  
      # test that providing too large of a max_results throws
      with pytest.raises(
          MlflowException, match=r"Invalid value for max_results"
      ) as exception_context:
          store.list_registered_models(
              page_token="evilhax", max_results=1e15
          )
      assert exception_context.value.error_code == ErrorCode.Name(
          INVALID_PARAMETER_VALUE
      )
      # list should not return deleted models
      store.delete_registered_model(name="RM000")
      assert set(
          _extract_names(
              store.list_registered_models(
                  max_results=100, page_token=None
              )
          )
      ) == set(rms[1:])
  
imports: import time
  import uuid
  from typing import List, NamedTuple
  from unittest import mock
  import pytest
  from mlflow.entities.model_registry import ModelVersion, ModelVersionTag, RegisteredModelTag
  from mlflow.exceptions import MlflowException
  from mlflow.protos.databricks_pb2 import INVALID_PARAMETER_VALUE, RESOURCE_DOES_NOT_EXIST, ErrorCode
  from mlflow.store.model_registry.file_store import FileStore
  from mlflow.utils.file_utils import path_to_local_file_uri, write_yaml
  from mlflow.utils.time import get_current_time_millis
  from tests.helper_functions import random_int, random_str
label_desc: Use image node_id 14 for calling a global function with example usage: test_list_registered_model_paginated_errors(store) without return types