code: def _allowed_output(output):
      allowed = {"stream", "display_data", "execute_result"}
  
      if output["output_type"] in allowed:
          return output.get("name") != "stderr"
      else:
          return False
  
imports: import base64
  from collections.abc import Mapping
  import ast
  import parso
  import pandas
  import nbformat
  from IPython.display import Image, HTML
label_desc: Use image node_id 5 for calling a global function with example usage: _allowed_output(output) and returns: unknown, False