parameters: (text)
return_statement: return text
docstring: Removes useless annotations.
  
      Leaves only In|Out|Inout(opt). We expect annotations as '_sth_[sth2_]'.
docstring_summary: Removes useless annotations.
docstring_tokens: Removes useless annotations .
function: def filter_annotations_without_brackets(text):
      """Removes useless annotations.
  
      Leaves only In|Out|Inout(opt). We expect annotations as '_sth_[sth2_]'.
      """
      text = re.sub(r'_Must_inspect_result_', '', text)
      text = re.sub(
          r"""
              __attribute__\s*
              \(\(
              [^()]+
              (\([^()]+\))?
              \)\)
          """,
          '',
          text,
          flags=re.VERBOSE
      )
      text = re.sub(
          r'\b(?!(_In_|_Out_|_Inout_)(opt_|z_)?\b|\w+_TYPE__\b)(_{1,2}\w+?_\b)(?!\s*\()', '', text)
      return text
function_tokens: def filter_annotations_without_brackets ( text ) : text = re . sub ( r'_Must_inspect_result_' , '' , text ) text = re . sub ( r"""
              __attribute__\s*
              \(\(
              [^()]+
              (\([^()]+\))?
              \)\)
          """ , '' , text , flags = re . VERBOSE ) text = re . sub ( r'\b(?!(_In_|_Out_|_Inout_)(opt_|z_)?\b|\w+_TYPE__\b)(_{1,2}\w+?_\b)(?!\s*\()' , '' , text ) return text