def is_graph_input(variable):
 return ((not variable.owner) and (not isinstance(variable, SharedVariable)) and (not isinstance(variable, Constant)))

def is_graph_input ( variable ) : return ( ( not variable . owner ) and ( not isinstance ( variable , SharedVariable ) ) and ( not isinstance ( variable , Constant ) ) )
check if variable is a user-provided graph input .