def setTraceEglConfig(self, traceName, configId, eventRange = None):
    """
    Force the usage of a particular EGL config for a GLES trace. This command
    overrides the automatic EGL configuration selection and makes the trace
    player use a specific EGL configuration.
    
    @param traceName:    Name of trace to modify.
    @param configId:     ID of new EGL configuration. Pass 0 to use the original config.
    @param eventRange:   Range of events to modify, or the whole trace by default.
    """
    if not self.analyzer.traces in traceName:
      self.analyzer.fail("Trace not found: %s" % traceName)
      
    trace                 = self.analyzer.traces[traceName]
    firstEvent, lastEvent = self.analyzer.parseEventRange(trace, eventRange)
    
    configId = int(configId)

    for event in trace.events[firstEvent:lastEvent]:
      for value in event.values.values():
        if isinstance(value, Trace.Object) and value.cls.name == "EGLConfig":
          # Found an EGL config -> replace the id
          if not configId:
            value.attrs["config_id"] = value.id
          else:
            value.attrs["config_id"] = -configId
          self.analyzer.reportInfo("EGL configuration ID of event %s(%d) set to %d." % (event.name, event.seq, abs(value.attrs["config_id"])))
dataset/ETHPy150Open skyostil/tracy/src/analyzer/plugins/core/CorePlugin.py/CoreInteractivePlugin.setTraceEglConfig/swapped operands of `in`