<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ways_callback(self, data):
 """ Callback for all ways """

        for way_id, tags, nodes in data:
            # Imposm passes all ways through regardless of whether the tags
            # have been filtered or not. It needs to do this in order to
            # handle relations, but we don't care about relations at the
            # moment.
            if tags:
                self.ways[way_id] = (tags, nodes)