

def build_hbase_restore_from_backup_args(dir, backup_version=None):
    args = [constants.HBASE_MAIN, constants.HBASE_RESTORE, constants.HBASE_BACKUP_DIR, dir]
    if (backup_version is not None):
        args.append(constants.HBASE_BACKUP_VERSION_FOR_RESTORE)
        args.append(backup_version)
    return args

dataset/ETHPy150Open aws/aws-cli/awscli/customizations/emr/hbaseutils.py build_hbase_restore_from_backup_args/original