code: def _clean_python_version(python_version: str) -> str:
      # remove micro if present
      if python_version.count(".") > 1:
          python_version = ".".join(python_version.split(".")[:2])
          _logger.debug(
              f"micro python version stripped. Now: {python_version}"
          )
      return python_version
  
imports: import json
  import logging
  import os
  import sys
  import tempfile
  from typing import Any, Dict, List, Optional, Tuple
  import wandb
  from wandb.apis.internal import Api
  from wandb.sdk.artifacts.artifact import Artifact
  from wandb.sdk.internal.job_builder import JobBuilder
  from wandb.sdk.launch.builder.build import get_current_python_version
  from wandb.sdk.launch.git_reference import GitReference
  from wandb.sdk.launch.utils import _is_git_uri
  from wandb.sdk.lib import filesystem
  from wandb.util import make_artifact_name_safe
label_desc: Use image node_id 11 for calling a global function with example usage: _clean_python_version(python_version) and returns: python_version