def foreign_key_references(self):
        """Get a list of all foreign key references from the table
        """
        result = list()
        for column in self.columns():
            if column.fk_table is not None:
                result.append((
                    [column.name], column.fk_table, [column.fk_reference]))

        for constraint in self._constraints:
            if 'fk_table' in constraint:
                result.append((constraint.get('fk_columns'),
                               constraint.get('fk_table'),
                               constraint.get('fk_reference')))
        return result
dataset/ETHPy150Open coursera/dataduct/dataduct/database/table.py/Table.foreign_key_references/original