code: def close(self):
      self._base_node.finish()
  
      # Add an endmarker.
      try:
          last_leaf = self._module.get_last_leaf()
      except IndexError:
          end_pos = [1, 0]
      else:
          last_leaf = _skip_dedent_error_leaves(last_leaf)
          end_pos = list(last_leaf.end_pos)
      lines = split_lines(self.prefix)
      assert len(lines) > 0
      if len(lines) == 1:
          if lines[0].startswith(BOM_UTF8_STRING) and end_pos == [1, 0]:
              end_pos[1] -= 1
          end_pos[1] += len(lines[0])
      else:
          end_pos[0] += len(lines) - 1
          end_pos[1] = len(lines[-1])
  
      endmarker = EndMarker(
          "", tuple(end_pos), self.prefix + self._prefix_remainder
      )
      endmarker.parent = self._module
      self._module.children.append(endmarker)
  
imports: import re
  import difflib
  from collections import namedtuple
  import logging
  from parso.utils import split_lines
  from parso.python.parser import Parser
  from parso.python.tree import EndMarker
  from parso.python.tokenize import PythonToken, BOM_UTF8_STRING
  from parso.python.token import PythonTokenTypes
label_desc: Use image node_id 10 for calling the _NodesTree obj's underlying member method code with example usage: obj.close() without return types