def get_latest_downloadable_repository_metadata_if_it_includes_tools(trans, repository):
 repository_metadata = get_latest_downloadable_repository_metadata(trans, repository)
 if ((repository_metadata is not None) and repository_metadata.includes_tools):
  return repository_metadata
 return None

def get_latest_downloadable_repository_metadata_if_it_includes_tools ( trans , repository ) : repository_metadata = get_latest_downloadable_repository_metadata ( trans , repository ) if ( ( repository_metadata is not None ) and repository_metadata . includes_tools ) : return repository_metadata return None
return the latest downloadable repository_metadata record for the received repository if its includes_tools attribute is true .