In below code while copying file from network location to local machine, shutil.copyfile or shutil.copy is returning incorrect/invalid string
def validate_inp