def make_name(variable, anon='anonymous_variable'):
 if (hasattr(variable, 'name') and (variable.name is not None)):
  return variable.name
 return anon

def make_name ( variable , anon = 'anonymous_variable' ) : if ( hasattr ( variable , 'name' ) and ( variable . name is not None ) ) : return variable . name return anon
if variable has a name .