def __init__(self, *args):
if len(args) == <NUM_LIT:1>:<EOL><INDENT>args = args[<NUM_LIT:0>]<EOL><DEDENT>try:<EOL><INDENT>extent = list(map(float, args))<EOL><DEDENT>except (TypeError, ValueError) as exc:<EOL><INDENT>exc.args = ('<STR_LIT>' % repr(args),)<EOL>raise<EOL><DEDENT>try:<EOL><INDENT>self.min_x, self.max_x = sorted(extent[::<NUM_LIT:2>])<EOL>self.min_y, self.max_y = sorted(extent[<NUM_LIT:1>::<NUM_LIT:2>])<EOL><DEDENT>except ValueError as exc:<EOL><INDENT>exc.args = ('<STR_LIT>' % len(args),)<EOL>raise<EOL><DEDENT>
Creates an envelope from lower-left and upper-right coordinates.

        Arguments:
        args -- min_x, min_y, max_x, max_y or a four-tuple