def _filter_by_tag(journal, tags):
    if tags == 'any':
        tag_filter = lambda item: 'Tags' in item
    else:
        tag_filter = lambda item: 'Tags' in item and set(item['Tags']).intersection(set(tags))

    return filter(tag_filter, journal)
@return: Returns all of the orders
dataset/ETHPy150Open nathangrigg/dayone_export/dayone_export/__init__.py/_filter_by_tag--crossover with--dataset/ETHPy150Open QuantSoftware/QuantSoftwareToolkit/Legacy/Legacy/simulator/Order.py/Order.getOrders