code: def get_single_page(
      *,
      client: "SwaggerClientWrapper",
      project_id: "UniqueId",
      attributes_filter: Dict[str, Any],
      limit: int,
      offset: int,
      sort_by: Optional[str] = None,
      types: Optional[Iterable[str]] = None,
      query: Optional["NQLQuery"] = None,
      searching_after: Optional[str] = None,
  ) -> List[Any]:
      normalized_query = query or NQLEmptyQuery()
      if sort_by and searching_after:
          sort_by_as_nql = NQLQueryAttribute(
              name=sort_by,
              type=NQLAttributeType.STRING,
              operator=NQLAttributeOperator.GREATER_THAN,
              value=searching_after,
          )
  
          if not isinstance(normalized_query, NQLEmptyQuery):
              normalized_query = NQLQueryAggregate(
                  items=[normalized_query, sort_by_as_nql],
                  aggregator=NQLAggregator.AND,
              )
          else:
              normalized_query = sort_by_as_nql
  
      sorting = (
          {
              "sorting": {
                  "dir": "ascending",
                  "aggregationMode": "none",
                  "sortBy": {"name": sort_by, "type": "string"},
              }
          }
          if sort_by
          else {}
      )
  
      params = {
          "projectIdentifier": project_id,
          "type": types,
          "params": {
              **sorting,
              **attributes_filter,
              "query": {"query": str(normalized_query)},
              "pagination": {"limit": limit, "offset": offset},
          },
      }
  
      request_options = DEFAULT_REQUEST_KWARGS.get(
          "_request_options", {}
      )
      request_config = RequestConfig(request_options, True)
      request_params = construct_request(
          client.api.searchLeaderboardEntries, request_options, **params
      )
  
      http_client = client.swagger_spec.http_client
  
      result = (
          http_client.request(
              request_params,
              operation=None,
              request_config=request_config,
          )
          .response()
          .incoming_response.json()
      )
  
      return list(map(to_leaderboard_entry, result.get("entries", [])))
  
file_path: neptune-client/src/neptune/api/searching_entries.py
imports: from typing import TYPE_CHECKING, Any, Dict, Generator, Iterable, List, Optional
  from bravado.client import construct_request
  from bravado.config import RequestConfig
  from neptune.internal.backends.api_model import AttributeType, AttributeWithProperties, LeaderboardEntry
  from neptune.internal.backends.hosted_client import DEFAULT_REQUEST_KWARGS
  from neptune.internal.backends.nql import NQLAggregator, NQLAttributeOperator, NQLAttributeType, NQLEmptyQuery, NQLQuery, NQLQueryAggregate, NQLQueryAttribute
  from neptune.internal.init.parameters import MAX_SERVER_OFFSET
label_desc: Use image node_id 1 for calling a global function with example usage: get_single_page() and returns: list