code: def resolve_aliases(self, chunks):
          '''
          Preserve backward compatibility by rewriting the 'state' key in the low
          chunks if it is using a legacy type.
          '''
          for idx, _ in enumerate(chunks):
              new_state = self.aliases.get(chunks[idx]['state'])
              if new_state is not None:
                  chunks[idx]['state'] = new_statf resolve_aliases(self, chunks):
          '''
          Preserve backward compatibility by rewriting the 'state' key in the low
          chunks if it is using a legacy type.
          '''
          for idx, _ in enumerate(chunks):
              new_state = self.aliases.get(chunks[idx]['state'])
              if new_state is not None:
                  chunks[idx]['state'] = new_state
docs: Preserve backward compatibility by rewriting the 'state' key in the low
          chunks if it is using a legacy type.