<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_package_class_name(name):
 """ Return package and class name in a java variant from a typed variant name. If no package could be found, the package is an empty string. example:: ('java.lang', 'Object') :param name: the name :rtype: tuple :return: """

    if name[0] != 'L' and name[-1] != ';':
        raise ValueError("The name '{}' does not look like a typed name!".format(name))

    name = name[1:-1]
    if '/' not in name:
        return '', name

    package, clsname = name.rsplit('/', 1)
    package = package.replace('/', '.')

    return package, clsname