code: def postprocess_output(self, output: str) -> str:
      output = STOP_PAT.sub("", output)
      return output.strip()
  
imports: import json
  import re
  from threading import Lock
  from typing import Any, Callable, Generator, List, Optional
  import jieba
  import torch
  import torch.distributed
  import torch.nn
  from pydantic import BaseModel, Field
label_desc: Use image node_id 3 for calling the ChatPromptProcessor obj's underlying member method code with example usage: obj.postprocess_output(output) and returns: output