code: def is_required(self, name):
          
          return self.schema_element(name).repetition_type == parquet_thrift.FieldRepetitionType.REQUIRED
docs: Return true iff the schema element with the given name is required.