def identify_technique(target, obstype, slit, grating, wavmode, roi):
    """Identify whether is Imaging or Spectroscopic data

    Args:
        target (str): Target name as in the keyword `OBJECT` this is useful in
        Automated aquisition mode, such as AEON.
        obstype (str): Observation type as in `OBSTYPE`
        slit (str): Value of `SLIT` keyword.
        grating (str): Value of `GRATING` keyword.
        wavmode (str): Value of `WAVMODE` keyword.
        roi (str): Value of `ROI` keyword.

    Returns:
        Observing technique as a string. Either `Imaging` or `Spectroscopy`.

    """
    if 'Spectroscopic' in roi or \
            obstype in ['ARC', 'SPECTRUM', 'COMP'] or \
            slit not in ['NO_MASK', '<NO MASK>'] or \
            grating not in ['NO_GRATING', '<NO GRATING>'] or \
            '_SP_' in target:
        technique = 'Spectroscopy'
    elif 'Imaging' in roi or \
            obstype in ['EXPOSE'] or\
            wavmode == 'IMAGING' or '_IM_' in target:
        technique = 'Imaging'
    else:
        technique = 'Unknown'
    return technique