code: def server_supports_artifact_collections_gql_edges(
      client: "RetryingClient", warn: bool = False
  ) -> bool:
      # TODO: Validate this version
      # Edges were merged into core on Mar 2, 2022: https://github.com/wandb/core/commit/81c90b29eaacfe0a96dc1ebd83c53560ca763e8b
      # CLI version was bumped to "0.12.11" on Mar 3, 2022: https://github.com/wandb/core/commit/328396fa7c89a2178d510a1be9c0d4451f350d7b
      supported = client.version_supported(
          "0.12.11"
      )  # edges were merged on
      if not supported and warn:
          # First local release to include the above is 0.9.50: https://github.com/wandb/local/releases/tag/0.9.50
          wandb.termwarn(
              "W&B Local Server version does not support ArtifactCollection gql edges; falling back to using legacy ArtifactSequence. Please update server to at least version 0.9.50."
          )
      return supported
  
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 for calling a global function with example usage: server_supports_artifact_collections_gql_edges(client, warn) and returns: supported