def get_smoking_EMA(cur_dir, filename) -> List[DataPoint]:
    emas = get_EMA_data(cur_dir, filename)
    data = []
    for ema in emas:
        d = ema[2]
        jsn_file = json.loads(d)
        status = jsn_file['status']
        if (status == 'COMPLETED'):
            is_smoked = jsn_file['question_answers'][0]['question_answer'][0:3]
            if (is_smoked.lower() == 'yes'):
                data.append(DataPoint(start_time=ema[0], offset=ema[1], sample=1))
            else:
                data.append(DataPoint(start_time=ema[0], offset=ema[1], sample=0))
    return data
def get_smoking_EMA(cur_dir, filename) -> List[DataPoint]:
    emas = get_EMA_data(cur_dir, filename)
    data = []
    for ema in emas:
        d = ema[2]
        jsn_file = json.loads(d)
        status = jsn_file['status']
        if (status == 'COMPLETED'):
            is_smoked = jsn_file['question_answers'][0]['question_answer'][0:3]
            if (is_smoked.lower() == 'yes'):
                data.append(DataPoint(start_time=ema[0], offset=ema[1], sample=1))
            else:
                data.append(DataPoint(start_time=ema[0], offset=ema[1], sample=0))
    return data