human
Here's a good function header given the following:
I wrote the below code

    G = tf.get_default_graph()
    def f(n):
        if ((len(n) >= 3) and (n[(-2)] == ':')):
            return G.get_tensor_by_name(n)
        else:
            return G.get_operation_by_name(n)
    if (not isinstance(name, list)):
        return f(name)
    else:
        return list(map(f, name))

What's a good function header?
assistant
#Here's a good function header.

def get_op_or_tensor_by_name(name):