Task name for map

if I have a list like it:

lis = ["Peter", "jay", "foo"]

and I have a task like that:

@task
def print_name(name):
    print(name)

I want to create a task for each element in the list. My solution is just to use map but I want also to make the name of the created task equal to the passed name argument to it. how can I achieve that ?