code: def remove_listener(registry, listener):
      
      if listener is not None and listener in registry:
          registry.remove(listener)
          return True
  
      return False
docs: Removes a listener from the registry
  
      :param registry: A registry (a list)
      :param listener: The listener to remove
      :return: True if the listener was in the list