create a python function that expects a pathname as an argument. the pathname can either be the nme of a file or the name of a directory code example
Example: python path from string
from pathlib import Path
str_path = "my_path"
path = Path(str_path)