def _is_junction(arg):
 return (isinstance(arg, dict) and (len(arg) == 1) and (next(six.iterkeys(arg)) == 'junction'))

def _is_junction ( arg ) : return ( isinstance ( arg , dict ) and ( len ( arg ) == 1 ) and ( next ( six . iterkeys ( arg ) ) == 'junction' ) )
return true .