code: def byname(nlist):
      
      warnings.warn("The internal byname() function has been deprecated, with "
                    "no replacement.", DeprecationWarning,
                    stacklevel=_stacklevel_above_module(__name__))
      return OrderedDict([(x.name, x) for x in nlist])
docs: **Deprecated:** Convert a list of named objects into an ordered dictionary
      indexed by name.
  
      This function is internal and has been deprecated in pywbem 0.12.