code: def get_version() -> str:
      """Get version from `anomalib.__init__`.
  
      Version is stored in the main __init__ module in `anomalib`.
      The varible storing the version is `__version__`. This function
      reads `__init__` file, checks `__version__ variable and return
      the value assigned to it.
  
      Example:
          >>> # Assume that __version__ = "0.2.6"
          >>> get_version()
          "0.2.6"
  
      Returns:
          str: `anomalib` version.
      """
      anomalib = load_module(name="src/anomalib/__init__.py")
      version = anomalib.__version__
      return version
  
file_path: anomalib/setup.py
imports: from __future__ import annotations
  from importlib.util import module_from_spec, spec_from_file_location
  from pathlib import Path
  from types import ModuleType
  from setuptools import find_packages, setup
label_desc: Use image node_id 2 for calling a global function with example usage: get_version() and returns: version