code: def _handle_server_artifact(
      self, res: Dict, artifact: "ArtifactRecord"
  ) -> None:
      if artifact.type == "job" and res is not None:
          try:
              if res["artifactSequence"]["latestArtifact"] is None:
                  self._job_version_alias = "v0"
              elif (
                  res["artifactSequence"]["latestArtifact"]["id"]
                  == res["id"]
              ):
                  self._job_version_alias = f"v{res['artifactSequence']['latestArtifact']['versionIndex']}"
              else:
                  self._job_version_alias = f"v{res['artifactSequence']['latestArtifact']['versionIndex'] + 1}"
              self._job_seq_id = res["artifactSequence"]["id"]
          except KeyError as e:
              _logger.info(
                  f"Malformed response from ArtifactSaver.save {e}"
              )
      if artifact.type == "code" and "id" in res:
          self._logged_code_artifact = ArtifactInfoForJob(
              {
                  "id": res["id"],
                  "name": artifact.name,
              }
          )
  
imports: import json
  import logging
  import os
  import re
  import sys
  from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple, Union
  import wandb
  from wandb.sdk.artifacts.artifact import Artifact
  from wandb.sdk.data_types._dtypes import TypeRegistry
  from wandb.sdk.lib.filenames import DIFF_FNAME, METADATA_FNAME, REQUIREMENTS_FNAME
  from wandb.util import make_artifact_name_safe
  from .settings_static import SettingsStatic
label_desc: Use image node_id 6 for calling the JobBuilder obj's underlying member method code with example usage: obj._handle_server_artifact(res, artifact) without return types