code: def _decode_stdoutdata(stdoutdata):
      """Convert data read from stdout/stderr to unicode"""
      if not isinstance(stdoutdata, bytes):
          return stdoutdata
  
      encoding = getattr(
          sys.__stdout__, "encoding", locale.getpreferredencoding()
      )
      if encoding is None:
          return stdoutdata.decode()
      return stdoutdata.decode(encoding)
  
imports: import fnmatch
  import locale
  import os
  import re
  import stat
  import subprocess
  import sys
  import textwrap
  import types
  import warnings
  from xml.etree import ElementTree
label_desc: Use image node_id 18 for calling a global function with example usage: _decode_stdoutdata(stdoutdata) and returns: stdoutdata, stdoutdata, stdoutdata