def is_valid_multipart_boundary(boundary):
 return (_multipart_boundary_re.match(boundary) is not None)

def is_valid_multipart_boundary ( boundary ) : return ( _multipart_boundary_re . match ( boundary ) is not None )
checks if the string given is a valid multipart boundary .