def parse_image_meta_graph(meta):
    """Parses a tensor that contains image attributes to its components.
    See compose_image_meta() for more details.

    meta: [batch, meta length] where meta length depends on NUM_CLASSES

    Returns a dict of the parsed tensors.
    """
    image_id = meta[:, (0)]
    original_image_shape = meta[:, 1:4]
    image_shape = meta[:, 4:7]
    window = meta[:, 7:11]
    scale = meta[:, (11)]
    active_class_ids = meta[:, 12:]
    a_meta = {'image_id': image_id, 'original_image_shape':
        original_image_shape, 'image_shape': image_shape, 'window': window,
        'scale': scale, 'active_class_ids': active_class_ids}
    return a_meta
