def API_segmentation(line):
    """
    Splits a API line to invoke type and API call
    """
    idx = line.find('}') + 1
    call = line[idx+1:].strip()
    invoke_type = line[:line.find('{')].strip().split('/')[0]
    return (invoke_type, call)