code: def intermediate_cpfs(self) -> List[CPF]:
          '''Returns list of intermediate-fluent CPFs in level order.'''
          _, cpfs = self.cpfs
          interm_cpfs = [cpf for cpf in cpfs if cpf.name in self.intermediate_fluents]
          interm_cpfs = sorted(interm_cpfs, key=lambda cpf: (self.intermediate_fluents[cpf.name].level, cpf.name))
          return interm_cpff intermediate_cpfs(self) -> List[CPF]:
          '''Returns list of intermediate-fluent CPFs in level order.'''
          _, cpfs = self.cpfs
          interm_cpfs = [cpf for cpf in cpfs if cpf.name in self.intermediate_fluents]
          interm_cpfs = sorted(interm_cpfs, key=lambda cpf: (self.intermediate_fluents[cpf.name].level, cpf.name))
          return interm_cpfs
docs: Returns list of intermediate-fluent CPFs in level order.