def get_file_name(filepath, extension=True):
  name = filepath.split("/")[-1]
  if extension:
    return name
  else:
    return name.split(".")[0]
Ensure basic interface compliance for an instance or dict of callables.
dataset/ETHPy150Open google/fplutil/setuputil/util.py/get_file_name--crossover with--dataset/ETHPy150Open pycassa/pycassa/pycassa/util.py/as_interface