code: def get_library_version(module_name):
      
      try:
          module = importlib.import_module('luma.' + module_name)
          if hasattr(module, '__version__'):
              return module.__version__
          else:
              return None
      except ImportError:
          return None
docs: Get version number from ``module_name``'s ``__version__`` attribute.
  
      .. versionadded:: 1.2.0
  
      :param module_name: The module name, e.g. ``luma.oled``.
      :type module_name: str
      :rtype: str