code: def test_artifact_files(
      user, api, sample_data, relay_server, inject_graphql_response
  ):
      art = api.artifact("mnist:v0", type="dataset")
      assert (
          str(art.files())
          == f"<ArtifactFiles {art.entity}/uncategorized/mnist:v0 (1)>"
      )
      paths = [f.storage_path for f in art.files()]
      assert paths[0].startswith("wandb_artifacts/")
  
      # Assert we don't break legacy local installs
      server_info_response = inject_graphql_response(
          # request
          query_match_fn=lambda query, variables: query.startswith(
              "query ServerInfo"
          ),
          # response
          body="""{"data": {"serverInfo": {"cliVersionInfo": {"max_cli_version": "0.12.20"}}}}""",
      )
      with relay_server(inject=[server_info_response]):
          api = wandb.Api()
          art = api.artifact("mnist:v0", type="dataset")
          file = art.files()[0]
          assert "storagePath" not in file._attrs.keys()
  
imports: import os
  import platform
  import pytest
  import wandb
  from wandb.sdk.artifacts.exceptions import ArtifactFinalizedError
label_desc: Use image node_id 8 for calling a global function with example usage: test_artifact_files(user, api, sample_data, relay_server, inject_graphql_response) without return types