code: def init_version():
      init = os.path.join(
          os.path.dirname(__file__), "../../pyproject.toml"
      )
      with open(init) as fid:
          data = fid.readlines()
  
      version_line = next(
          line for line in data if line.startswith("version =")
      )
  
      version = version_line.strip().split(" = ")[1]
      version = version.replace('"', "").replace("'", "")
  
      return version
  
imports: import os
  import textwrap
label_desc: Use image node_id 1 for calling a global function with example usage: init_version() and returns: version