def safe_make_node(op, *inputs):
 node = op(*inputs)
 if isinstance(node, list):
  return node[0].owner
 else:
  return node.owner

def safe_make_node ( op , * inputs ) : node = op ( * inputs ) if isinstance ( node , list ) : return node [ 0 ] . owner else : return node . owner
emulate the behaviour of make_node when op is a function .