code: def all_nodes_that_receive(service, service_configuration=None, run_only=False, deploy_to_only=False):
      assert not (run_only and deploy_to_only)
      if service_configuration is None:
          service_configuration = read_services_configuration()
      runs_on = service_configuration[service]['runs_on']
      deployed_to = service_configuration[service].get('deployed_to')
      if deployed_to is None:
          deployed_to = []
      if run_only:
          result = runs_on
      elif deploy_to_only:
          result = deployed_to
      else:
          result = set(runs_on) | set(deployed_to)
      return list(sorted(result))