def METHOD_NAME(fpath: str) -> Optional[str]:
   out = subprocess.check_output(['file', fpath]).decode('utf-8')
   if out.find("shell script") != -1:
      return "Shell script"
   if out.find("Python script") != -1:
      return "Python"
   return None