code: def get_following_comment_same_line(node):
      """
      returns (as string) any comment that appears on the same line,
      after the node, including the #
      """
      try:
          if node.type == "for_stmt":
              whitespace = node.children[5].get_first_leaf().prefix
          elif node.type == "with_stmt":
              whitespace = node.children[3].get_first_leaf().prefix
          elif node.type == "funcdef":
              # actually on the next line
              whitespace = (
                  node.children[4]
                  .get_first_leaf()
                  .get_next_leaf()
                  .prefix
              )
          else:
              whitespace = node.get_last_leaf().get_next_leaf().prefix
      except AttributeError:
          return None
      except ValueError:
          # TODO in some particular cases, the tree doesn't seem to be linked
          # correctly
          return None
      if "#" not in whitespace:
          return None
      comment = whitespace[whitespace.index("#") :]
      if "\r" in comment:
          comment = comment[: comment.index("\r")]
      if "\n" in comment:
          comment = comment[: comment.index("\n")]
      return comment
  
file_path: catboost/contrib/python/jedi/py3/jedi/parser_utils.py
imports: import re
  import textwrap
  from inspect import cleandoc
  from parso.python import tree
  from parso.cache import parser_cache
  from jedi._compatibility import literal_eval, force_unicode
label_desc: Use image node_id 11 for calling a global function with example usage: get_following_comment_same_line(node) and returns: comment, None, None, None