<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_platform_for_set_of_wheels(wheels_path):
 """For any set of wheel files, extracts a single platform. Since a set of wheels created or downloaded on one machine can only be for a single platform, if any wheel in the set has a platform which is not `any`, it will be used with one exception: In Linux, a wagon can contain wheels for both manylinux1 and linux. If, at any point we find that a wheel has `linux` as a platform, it will be used since it means it doesn't cross-fit all distros. If a platform other than `any` was not found, `any` will be assumed """

    real_platform = ''

    for wheel in _get_downloaded_wheels(wheels_path):
        platform = _get_platform_from_wheel_name(
            os.path.join(wheels_path, wheel))
        if 'linux' in platform and 'manylinux' not in platform:
            # Means either linux_x64_86 or linux_i686 on all wheels
            # If, at any point, a wheel matches this, it will be
            # returned so it'll only match that platform.
            return platform
        elif platform != ALL_PLATFORMS_TAG:
            # Means it can be either Windows, OSX or manylinux1 on all wheels
            real_platform = platform

    return real_platform or ALL_PLATFORMS_TAG