code: def test_list_registered_model_paginated_returns_in_correct_order(
      store,
  ):
      rms = [
          store.create_registered_model(f"RM{i:03}").name
          for i in range(50)
      ]
  
      # test that pagination will return all valid results in sorted order
      # by name ascending
      result = store.list_registered_models(
          max_results=5, page_token=None
      )
      assert result.token is not None
      assert _extract_names(result) == rms[0:5]
  
      result = store.list_registered_models(
          page_token=result.token, max_results=10
      )
      assert result.token is not None
      assert _extract_names(result) == rms[5:15]
  
      result = store.list_registered_models(
          page_token=result.token, max_results=20
      )
      assert result.token is not None
      assert _extract_names(result) == rms[15:35]
  
      result = store.list_registered_models(
          page_token=result.token, max_results=100
      )
      assert result.token is None
      assert _extract_names(result) == rms[35:]
  
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 13 for calling a global function with example usage: test_list_registered_model_paginated_returns_in_correct_order(store) without return types