You decide what the function will do with the parameters. I am giving you a way to take an action according to the parameter.
You want to do something according to the function's parameter type. Check the type.
def func(something): if type(something) == str: # action elif type(something) == Object: # actionMaybe there are other ways but this is just an example. I am tired
You want to do something according to the function's parameter type. Check the type.