def boto_supports_kms_key_id():
 return (hasattr(boto, 'Version') and (LooseVersion(boto.Version) >= LooseVersion('2.39.0')))

def boto_supports_kms_key_id ( ) : return ( hasattr ( boto , 'Version' ) and ( LooseVersion ( boto . Version ) >= LooseVersion ( '2.39.0' ) ) )
check if boto library supports kms_key_ids returns: true if version is equal to or higher then the version needed .