code: def get_torchserve_version():
      # fetch the torchserve version from version.txt file
      with open(
          os.path.join(
              os.path.dirname(os.path.abspath(__file__)),
              "..",
              "ts",
              "version.txt",
          ),
          "r",
      ) as file:
          version = file.readline().rstrip()
      return version
  
imports: import locale
  import os
  import re
  import subprocess
  import sys
label_desc: Use image node_id 21 for calling a global function with example usage: get_torchserve_version() and returns: version