def pwd(self, **kwargs):
b_node  = False<EOL>node    = <NUM_LIT:0><EOL>for key,val in kwargs.items():<EOL><INDENT>if key == '<STR_LIT>':<EOL><INDENT>b_node  = True<EOL>node    = int(val)<EOL><DEDENT><DEDENT>str_path = self.cwd()<EOL>if b_node:<EOL><INDENT>l_path      = str_path.split('<STR_LIT:/>')<EOL>if len(l_path) >= node+<NUM_LIT:1>:<EOL><INDENT>str_path    = str_path.split('<STR_LIT:/>')[node]<EOL><DEDENT><DEDENT>return str_path<EOL>
Returns the cwd

Optional kwargs:

    node = <node>
    If specified, return only the directory name at depth <node>.