code: def get_optional(self, name):
          
          locator = self._locate(name)
          return self._references.get_optional(locator) if locator != None else None
docs: Gets all optional dependencies by their name.
  
          :param name: the dependency name to locate.
  
          :return: a list with found dependencies or empty list of no dependencies was found.