def get_file_name(filepath, extension=True):
  """Returns the name of the file of a given filepath or url.

  Args:
    filepath: String of full file path
    extension: Boolean determining whether or not the file type will be returned
        as part of the file name
  Returns:
    String: The filename
  """
  name = filepath.split("/")[-1]
  if extension:
    return name
  else:
    return name.split(".")[0]