def attach_stream(self, source, shape, name, semantic, stride, offset):
        if source is not None:
            if isinstance(source[0], tuple) is False:
                self.__attach_v1(shape, source, name, semantic, offset)
            elif len(source[0]) == 2:
                self.__attach_v2(shape, source, name, semantic, offset)
            elif len(source[0]) == 3:
                self.__attach_v3(shape, source, name, semantic, offset)
            elif len(source[0]) == 4:
                self.__attach_v4(shape, source, name, semantic, offset)
        else:
            self.__set_source(shape, name, stride)
            self.__set_input(shape, semantic, { 'source': name, 'offset': offset })
Return metadata about the search in a dictionary useful to populate
dataset/ETHPy150Open turbulenz/turbulenz_tools/turbulenz_tools/tools/asset2json.py/JsonAsset.attach_stream--crossover with--dataset/ETHPy150Open django-oscar/django-oscar/src/oscar/apps/search/search_handlers.py/SearchHandler.get_search_context_data