def dkimport(name):
    """Import and return the item specified by name:

       Usage::

           >>> item = dkimport('dk.core.dkimport.dkimport')
           >>> item.__name__
           'dkimport'

    """
    name = str(name)
    if name.startswith('/'):
        raise ValueError('Cannot import from implicit root.')
    if '.' in name:
        package, item = name.rsplit('.', 1)
        tmp = __import__(package, {}, {}, [item], -1)
        return getattr(tmp, item)
    else:
        return __import__(name, {}, {}, [], -1)
