code: def encoding(self, encoding):
      if encoding is None:
          encoding = locale.getpreferredencoding()
      codecs.lookup(encoding)  # raise early
      self._encoding = encoding
  
imports: import codecs
  import locale
  import logging
  import os
  from .None import backend
  from .None import tools
label_desc: Use image node_id 6 for calling the Base obj's underlying member method code with example usage: obj.encoding(encoding) without return types