def listdir(directory, split_ext=False):
  try:
    if split_ext:
      return [os.path.splitext(dir_)[0] for dir_ in os.listdir(directory)]
    else:
      return os.listdir(directory)
  except __HOLE__:
    return []
dataset/ETHPy150Open lipis/life-line/run.py/listdir