def from_map(self, table, incols):
        if not incols:
            raise ValueError("Table '%s' has no columns" % table.name)
        cols = self[(table.schema, table.name)] = []

        for incol in incols:
            for key in incol:
                if isinstance(incol[key], dict):
                    arg = incol[key]
                else:
                    arg = {'type': incol[key]}
                col = Column(schema=table.schema, table=table.name, name=key,
                             **arg)
                if len(col.privileges) > 0:
                    if table.owner is None:
                        raise ValueError("Column '%s.%s' has privileges but "
                                         "no owner information" % (
                                         table.name, key))
                    col.privileges = privileges_from_map(
                        col.privileges, col.allprivs, table.owner)
                cols.append(col)
An undefined name warning is emitted if a name is used inside the body
dataset/ETHPy150Open perseas/Pyrseas/pyrseas/dbobject/column.py/ColumnDict.from_map--crossover with--dataset/ETHPy150Open timothycrosley/frosted/frosted/test/test_other.py/test_withStatementUndefinedInside