def foreign(expr):
 return _annotate_columns(expression._clause_element_as_expr(expr), {'foreign': True})

def foreign ( expr ) : return _annotate_columns ( expression . _clause_element_as_expr ( expr ) , { 'foreign' : True } )
annotate a portion of a primaryjoin expression with a foreign annotation .