def _parse_block_name(block_name):
    """
    Obtain a path and the class name from the given block name.

    :return: A tuple path, class name.
    :rtype: tuple

    """
    names = block_name.split('.')
    if len(names) == 1:
        return '', block_name
    return '.'.join(names[:-1]), names[-1]
