<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_partition(self, spec, location=None):
 """ Add a new table partition, creating any new directories in HDFS if necessary. Partition parameters can be set in a single DDL statement, or you can use alter_partition to set them after the fact. Returns ------- None (for now) """

        part_schema = self.partition_schema()
        stmt = ddl.AddPartition(
            self._qualified_name, spec, part_schema, location=location
        )
        return self._execute(stmt)