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