code: def check_driver_dependencies(driver, dependencies):
      '''
      Check if the driver's dependencies are available.
  
      .. versionadded:: 2015.8.0
  
      driver
          The name of the driver.
  
      dependencies
          The dictionary of dependencies to check.
      '''
      ret = True
      for key, value in six.iteritems(dependencies):
          if value is False:
              log.warning(
                  "Missing dependency: '%s'. The %s driver requires "
                  "'%s' to be installed.", key, driver, key
              )
              ret = False
  
      return ref check_driver_dependencies(driver, dependencies):
      '''
      Check if the driver's dependencies are available.
  
      .. versionadded:: 2015.8.0
  
      driver
          The name of the driver.
  
      dependencies
          The dictionary of dependencies to check.
      '''
      ret = True
      for key, value in six.iteritems(dependencies):
          if value is False:
              log.warning(
                  "Missing dependency: '%s'. The %s driver requires "
                  "'%s' to be installed.", key, driver, key
              )
              ret = False
  
      return ret
docs: Check if the driver's dependencies are available.
  
      .. versionadded:: 2015.8.0
  
      driver
          The name of the driver.
  
      dependencies
          The dictionary of dependencies to check.