def inst_msg_proc_func(response_content):
    if isinstance(response_content, dict):
        instrument = {i: [(pd.Timestamp(s), pd.Timestamp(e)) for (s, e) in t] for (i, t) in response_content.items()}
    else:
        instrument = response_content
    return instrument
def inst_msg_proc_func(response_content):
    if isinstance(response_content, dict):
        instrument = {i: [(pd.Timestamp(s), pd.Timestamp(e)) for (s, e) in t] for (i, t) in response_content.items()}
    else:
        instrument = response_content
    return instrument