code: def __init__(
      self,
      client: Client,
      entity: str,
      project: str,
      type_name: str,
      per_page: Optional[int] = 50,
  ):
      self.entity = entity
      self.project = project
      self.type_name = type_name
  
      variable_values = {
          "entityName": entity,
          "projectName": project,
          "artifactTypeName": type_name,
      }
  
      self.QUERY = gql(
          """
              query ProjectArtifactCollections(
                  $entityName: String!,
                  $projectName: String!,
                  $artifactTypeName: String!
                  $cursor: String,
              ) {
                  project(name: $projectName, entityName: $entityName) {
                      artifactType(name: $artifactTypeName) {
                          artifactCollections: %s(after: $cursor) {
                              pageInfo {
                                  endCursor
                                  hasNextPage
                              }
                              totalCount
                              edges {
                                  node {
                                      id
                                      name
                                      description
                                      createdAt
                                  }
                                  cursor
                              }
                          }
                      }
                  }
              }
          """
          % artifact_collection_plural_edge_name(
              server_supports_artifact_collections_gql_edges(client)
          )
      )
  
      super().__init__(client, variable_values, per_page)
  
imports: import json
  from typing import TYPE_CHECKING, Any, Mapping, Optional, Sequence
  from wandb_gql import Client, gql
  import wandb
  from wandb.apis import public
  from wandb.apis.normalize import normalize_exceptions
  from wandb.apis.paginator import Paginator
label_desc: Use image node_id 1 to create a new ArtifactCollections object from inherited base classes: Paginator with example: obj = ArtifactCollections(client, entity, project, type_name, per_page)