class_docstr: Transforms input by add punctuation at the end of sentence.
docstr: Generate punctuation.
  
  :param int n:
  :return list: insert punctuations
code: def _generate_punctuation(self, n):
      r"""
      Generate punctuation.
  
      :param int n:
      :return list: insert punctuations
  
      """
      bracket_puns = [
          ['"', '"'],
          ["{", "}"],
          ["[", "]"],
          ["(", ")"],
          ["`", "`"],
          ["【", "】"],
      ]
      end_puns = ["...", ".", ",", ";"]
      number = min(n, len(end_puns))
  
      random_brackets = self.sample_num(bracket_puns, number)
      random_puns = self.sample_num(end_puns, number)
  
      for i in range(number):
          if self.add_bracket:
              yield [random_brackets[i][0]], [
                  random_puns[i],
                  random_brackets[i][-1],
              ]
          else:
              yield [], [random_puns[i]]
  
file_path: textflint/textflint/generation/transformation/UT/punctuation.py
imports: import string
  from ..transformation import Transformation
label_desc: Use image node_id 5 for calling the Punctuation obj's underlying member method code with example usage: obj._generate_punctuation(n) without return types