code: def discard_oe():
      """
      Redirect output and error stream to temporary file. In a sense,
      it is equivalent discarded the output and error messages
      """
      with generate_tempfile(mode="w") as _stream:
          with redirect_ostream(_stream), redirect_estream(_stream):
              yield
  
file_path: PaddleHub/paddlehub/utils/io.py
imports: import contextlib
  import sys
  from typing import IO
  from paddlehub.utils.utils import generate_tempfile
label_desc: Use image node_id 4 for calling a global function with example usage: discard_oe() without return types