code: def get_one_optional(self, name):
          
          locator = self._locate(name)
          return self._references.get_one_optional(locator) if locator != None else None
docs: Gets one optional dependency by its name.
  
          :param name: the dependency name to locate.
  
          :return: a dependency reference or null of the dependency was not found