def get_file_information(file_path:str, strip_extras: bool = False) -> str:
    """Module to fetch file name or file type.

    Parameters
    ----------
    file_path*: Support both relative, absolute references to the input file location.
    strip_extras: Returns file source instead of file name (if set True), default: False
    (* - Required parameters)

    Returns
    -------
    base path as string
    """
    base_url_idx = file_path.rindex('/')+1
    file_name = file_path[base_url_idx:]
    # Return the file name (if that's what the module has been called for)
    if not strip_extras:
        return file_name
    # Return file type (if strip_extras flag is set to True)
    return file_name[17:file_name.rindex('_')]