def get_resource_by_format(resources, format_type):        
    
    for resource in resources:
        current_format = resource['format']
        if (str(current_format).strip().upper() == format_type.strip().upper()):
            return resource
    
    return None
Get the list of installed files for the distribution
dataset/ETHPy150Open opencolorado/OpenColorado-Tools-and-Utilities/Scripts/ArcGIS/10.0/Python/PublishOpenDataset.py/get_resource_by_format--crossover with--dataset/ETHPy150Open anzev/hedwig/build/pip/pip/_vendor/distlib/database.py/InstalledDistribution._get_records