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

    def scatter_map(obj):
        if isinstance(obj, Variable):
            return Scatter(target_gpus, dim=dim)(obj)
        assert (not torch.is_tensor(obj)), 'Tensors    not    supported    in    scatter.'
        if isinstance(obj, tuple):
            return tuple(zip(*map(scatter_map, obj)))
        if isinstance(obj, list):
            return tuple(map(list, zip(*map(scatter_map, obj))))
        if isinstance(obj, dict):
            return tuple(map(type(obj), zip(*map(scatter_map, obj.items()))))
        return tuple((obj for targets in target_gpus))
    return scatter_map(inputs)

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

def scatter(inputs, target_gpus, dim=0):