class_docstr: Validator for regular expressions.
class_docstr_tok: ["Validator","for","regular","expressions","."]
code: def _calculate_flags(self):
      return reduce(lambda x, y: x | y, self.flags, 0)
  
imports: import re
  from six.moves import reduce
  from .errors import ValidationError
  from .None import utilities
label_desc: Use image node_id 3 for calling the Regex obj's underlying member method code with example usage: obj._calculate_flags() and returns: reduce