
    e*                         d Z d ZdS )zZ
A simple utility to import something by its string name.

Vendored form ipython_genutils
c                    |                      dd          }t          |          dk    rL|\  }}t          ||g          }	 t          ||          }n!# t          $ r t          d|z            dw xY w|S t          |d                   S )a  Import and return ``bar`` given the string ``foo.bar``.

    Calling ``bar = import_item("foo.bar")`` is the functional equivalent of
    executing the code ``from foo import bar``.

    Parameters
    ----------
    name : string
        The fully qualified name of the module/package being imported.

    Returns
    -------
    mod : module object
        The module that was imported.
    .      )fromlistzNo module named %sN    )rsplitlen
__import__getattrAttributeErrorImportError)namepartspackageobjmodulepaks         1lib/python3.11/site-packages/nbformat/_imports.pyimport_itemr      s    " KKQE
5zzQGse444	D&#&&CC 	D 	D 	D2S899tC	D
 %(###s   A A1N)__doc__r        r   <module>r      s(    $ $ $ $ $r   