def METHOD_NAME(iargs=None):
    # parse
    parser = create_parser()
    inps = parser.parse_args(args=iargs)
    # import
    from mintpy.objects import timeseries
    from mintpy.utils import readfile
    # default: dset
    if not inps.dset:
        ftype = readfile.read_attribute(inps.file)['FILE_TYPE']
        if ftype == 'timeseries':
            inps.dset = timeseries(inps.file).get_date_list()[-1]
            print(f'NO date specified >>> continue with the last date: {inps.dset}')
        elif ftype in ['ifgramStack', 'HDFEOS']:
            raise Exception(f"NO input dataset! It's required for {ftype} file")
    return inps