def boto_supports_param_in_spot_request(ec2, param):
 method = getattr(ec2, 'request_spot_instances')
 return (param in get_function_code(method).co_varnames)

def boto_supports_param_in_spot_request ( ec2 , param ) : method = getattr ( ec2 , 'request_spot_instances' ) return ( param in get_function_code ( method ) . co_varnames )
check if boto library has a <param> in its request_spot_instances() method .