def _get_basename(file_name):
    """Get file basename

    Get basename of file by splitting on "."

    Args:
        file_name(str): path to file
    Returns:
        str: file basename
    Example:
        >>> _get_basename('/path/to/myfile.txt')
        'myfile'
    """
    if '/' in file_name:
        basename = file_name.split('/')[-1].split('.')[0]
    else:
        basename = file_name.split('.')[0]
    return basename
