code: def get_module_version(module=None):
      """
      ## get_module_version
  
      Retrieves version of specified module
  
      Parameters:
          name (ModuleType): module of datatype `ModuleType`.
  
      **Returns:** version of specified module as string
      """
      # check if module type is valid
      assert not (module is None) and isinstance(
          module, types.ModuleType
      ), "[VidGear CORE:ERROR] :: Invalid module!"
  
      # get version from attribute
      version = getattr(module, "__version__", None)
      # retry if failed
      if version is None:
          # some modules uses a capitalized attribute name
          version = getattr(module, "__VERSION__", None)
      # raise if still failed
      if version is None:
          raise ImportError(
              "[VidGear CORE:ERROR] ::  Can't determine version for module: `{}`!".format(
                  module.__name__
              )
          )
      return str(version)
  
file_path: vidgear/vidgear/gears/__init__.py
imports: import sys
  import types
  import importlib
  from pkg_resources import parse_version
  from .camgear import CamGear
  from .pigear import PiGear
  from .videogear import VideoGear
  from .netgear import NetGear
  from .writegear import WriteGear
  from .screengear import ScreenGear
  from .streamgear import StreamGear
label_desc: Use image node_id 1 for calling a global function with example usage: get_module_version(module) and returns: str