def make_metadata_path(keys, value, version=None):
    """
    Generate a path to find a given lookup table.
    """
    if isinstance(keys, (list, tuple)):
        keys = '/'.join(keys)
    path = '%s/%s' % (keys, value)
    if version:
        path += '.%s' % version
    path += '.csv.yml'
    return path
