docs: def set_bios_configuration(irmc_info, settings):
      """Set BIOS configurations on the server.
  
      :param irmc_info: node info
      :param settings: Dictionary containing the BIOS configuration.
      :raise: BiosConfigNotFound, if there is wrong settings for bios
      configuration.
      """
  
      bios_config_data = {
          'Server': {
              'SystemConfig': {
                  'BiosConfig': {}
              }
          }
      }
  
      versions = elcm_profile_get_versions(irmc_info)
      server_version = versions['Server'].get('@Version')
      bios_version = \
          versions['Server']['SystemConfig']['BiosConfig'].get('@Version')
  
      if server_version:
          bios_config_data['Server']['@Version'] = server_version
      if bios_version:
          bios_config_data['Server']['SystemConfig']['BiosConfig']['@Version'] = \
              bios_version
  
      configs = {}
      for setting_param in settings:
          setting_name = setting_param.get("name")
          setting_value = setting_param.get("value")
          # Revert-conversion from a string of True/False to boolean.
          # It will be raise failed if put "True" or "False" string value.
          if isinstance(setting_value, six.string_types):
              if setting_value.lower() == "true":
                  setting_value = True
              elif setting_value.lower() == "false":
                  setting_value = False
          try:
              type_config, config = BIOS_CONFIGURATION_DICTIONARY[
                  setting_name].split("_")
              if type_config in configs.keys():
                  configs[type_config][config] = setting_value
              else:
                  configs.update({type_config: {config: setting_value}})
          except KeyError:
              raise BiosConfigNotFound("Invalid BIOS setting: %s"
                                       % setting_param)
      bios_config_data['Server']['SystemConfig']['BiosConfig'].update(configs)
      restore_bios_config(irmc_info, bios_config_data)