code: def MeetsConditions(knowledge_base, source):
    
    source_conditions_met = True
    os_conditions = ConvertSupportedOSToConditions(source)
    if os_conditions:
      source.conditions.append(os_conditions)
    for condition in source.conditions:
      source_conditions_met &= artifact_utils.CheckCondition(
          condition, knowledge_base)
  
    return source_conditions_met
docs: Check conditions on the source.