docstr: Return True if this is a sequence.
docstr_tok: ["Return","True","if","this","is","a","sequence","."]
code: def is_sequence(self) -> bool:
      """Return True if this is a sequence."""
      query = gql(
          """
              query FindSequence($entity: String!, $project: String!, $collection: String!, $type: String!) {
                  project(name: $project, entityName: $entity) {
                      artifactType(name: $type) {
                          __typename
                          artifactSequence(name: $collection) {
                              __typename
                          }
                      }
                  }
              }
              """
      )
      variables = {
          "entity": self.entity,
          "project": self.project,
          "collection": self.name,
          "type": self.type,
      }
      res = self.client.execute(query, variable_values=variables)
      sequence = res["project"]["artifactType"]["artifactSequence"]
      return (
          sequence is not None
          and sequence["__typename"] == "ArtifactSequence"
      )
  
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 6 for calling the ArtifactCollection obj's underlying member method code with example usage: obj.is_sequence() and returns: unknown