<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_backend_mod(name=None):
 """Returns the imported module for the given backend name Parameters name : `str`, optional the name of the backend, defaults to the current backend. Returns ------- backend_mod: `module` the module as returned by :func:`importlib.import_module` Examples -------- """

    if name is None:
        name = get_backend()
    backend_name = (name[9:] if name.startswith("module://") else
                    "matplotlib.backends.backend_{}".format(name.lower()))
    return importlib.import_module(backend_name)