docs: def max_repetition_level(self, path):
          """Get the max repetition level for the given schema path."""
          max_level = 0
          for part in path:
              element = self.schema_element(part)
              if element.repetition_type == parquet_thrift.FieldRepetitionType.REQUIRED:
                  max_level += 1
          return max_level