def is_s3_uri(uri):
 try:
  parse_s3_uri(uri)
  return True
 except ValueError:
  return False

def is_s3_uri ( uri ) : try : parse_s3_uri ( uri ) return True except ValueError : return False
return true if *uri* can be parsed into an s3 uri .