code: def GetArtifactsForCollection(os_name, artifact_list):
    
    artifact_arranger = ArtifactArranger(os_name, artifact_list)
    artifact_names = artifact_arranger.GetArtifactsInProperOrder()
    return artifact_names
docs: Wrapper for the ArtifactArranger.
  
    Extend the artifact list by dependencies and sort the artifacts to resolve the
    dependencies.
  
    Args:
      os_name: String specifying the OS name.
      artifact_list: List of requested artifact names.
  
    Returns:
      A list of artifacts such that if they are collected in the given order
        their dependencies are resolved.