code: def get_version():
      current_dir = os.path.abspath(os.path.dirname(__file__))
      version_file = os.path.join(current_dir, "sahi", "__init__.py")
      with io.open(version_file, encoding="utf-8") as f:
          return re.search(
              r'^__version__ = [\'"]([^\'"]*)[\'"]', f.read(), re.M
          ).group(1)
  
imports: import io
  import os
  import re
  import setuptools
label_desc: Use image node_id 3 for calling a global function with example usage: get_version() and returns: re