code: def truncate_version(v: version.Version):
      "Truncates a version as `major.minor`"
      return version.parse(f"{v.major}.{v.minor}")
  
file_path: norfair/docs/deploy_docs.py
imports: import logging
  import subprocess
  from typing import List, Union
  from packaging import version
label_desc: Use image node_id 4 for calling a global function with example usage: truncate_version(v) and returns: version