code: def _kwargs(self):
      result = super(File, self)._kwargs()
      result["filename"] = self.filename
      if "directory" in self.__dict__:
          result["directory"] = self.directory
      return result
  
imports: import codecs
  import io
  import locale
  import logging
  import os
  from ._compat import text_type
  from .None import backend
  from .None import tools
label_desc: Use image node_id 2 for calling the File obj's underlying member method code with example usage: obj._kwargs() and returns: result