def arg_check()

in util-cell-enumerate.py [0:0]


def arg_check(path): 
  if not isinstance(path,str):
    print('The notebook specified is not a string')
    sys.exit()

  if not path.endswith('.ipynb'):
    print('The notebook does not have the expected .inbpy suffix')
    sys.exit()

  if not os.path.isfile(path):
    print('The notebook specified not found in filesystem.')
    sys.exit()