wL idZdZy)z: A simple utility to import something by its string name. c|jdd}t|dk(r"|\}}t||g} t||}|St|dS#t$r}t d|z|d}~wwxYw)aImport 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. .)fromlistzNo module named %sN)rsplitlen __import__getattrAttributeError ImportError)namepartspackageobjmodulepakes `/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/IPython/utils/importstring.py import_itemr s" KKQ E 5zQ Gse4 A&#&C %(##  A2S89q @ As A A.A))A.N)__doc__rrrs$r