def METHOD_NAME(self, my_task):
    # This method can be extended to provide task specific info for different spec types
    # Since almost all spec types can be MI, add instance info here if present
    info = {}
    if 'key_or_index' in my_task.internal_data:
        info['instance'] = my_task.internal_data.get('key_or_index')
    if 'item' in my_task.internal_data:
        info['instance'] = my_task.internal_data.get('item')
    if 'iteration' in my_task.internal_data:
        info['iteration'] = my_task.internal_data.get('iteration')
    return info