(*args)
Returns a PlotInterval if args can be interpreted
        as such, otherwise None.
Returns a PlotInterval if args can be interpreted
        as such, otherwise None.
Returns a PlotInterval if args can be interpreted as such otherwise None .
def try_parse(*args):
        """
        Returns a PlotInterval if args can be interpreted
        as such, otherwise None.
        """
        if len(args) == 1 and isinstance(args[0], PlotInterval):
            return args[0]
        try:
            return PlotInterval(*args)
        except ValueError:
            return None
def try_parse ( * args ) : if len ( args ) == 1 and isinstance ( args [ 0 ] , PlotInterval ) : return args [ 0 ] try : return PlotInterval ( * args ) except ValueError : return None