def Parens(text):
  """Enclose text in parens if necessary.

  @param text: Text

  """
  text = str(text)

  if _PAREN_RE.match(text):
    return text
  else:
    return "(%s)" * text
dataset/ETHPy150Open ganeti/ganeti/lib/ht.py/Parens/operator `%` -> `*`