code: def test_order_eventlogs_by_owner(self, create_log_model, session):
      log_model_1 = create_log_model(
          event="TEST_EVENT_1", when=self.default_time
      )
      log_model_2 = create_log_model(
          event="TEST_EVENT_2", when=self.default_time_2, owner="zsh"
      )
      log_model_3 = Log(
          event="cli_scheduler",
          owner="root",
          extra='{"host_name": "e24b454f002a"}',
      )
      log_model_3.dttm = self.default_time_2
      session.add(log_model_3)
      session.flush()
      response = self.client.get(
          "/api/v1/eventLogs?order_by=-owner",
          environ_overrides={"REMOTE_USER": "test"},
      )
      assert response.status_code == 200
      assert response.json == {
          "event_logs": [
              {
                  "event_log_id": log_model_2.id,
                  "event": "TEST_EVENT_2",
                  "dag_id": "TEST_DAG_ID",
                  "task_id": "TEST_TASK_ID",
                  "execution_date": self.default_time.isoformat(),
                  "owner": "zsh",  # Order by name, sort order is descending(-)
                  "when": self.default_time_2.isoformat(),
                  "extra": None,
              },
              {
                  "event_log_id": log_model_3.id,
                  "event": "cli_scheduler",
                  "dag_id": None,
                  "task_id": None,
                  "execution_date": None,
                  "owner": "root",
                  "when": self.default_time_2.isoformat(),
                  "extra": '{"host_name": "e24b454f002a"}',
              },
              {
                  "event_log_id": log_model_1.id,
                  "event": "TEST_EVENT_1",
                  "dag_id": "TEST_DAG_ID",
                  "task_id": "TEST_TASK_ID",
                  "execution_date": self.default_time.isoformat(),
                  "owner": "airflow",
                  "when": self.default_time.isoformat(),
                  "extra": None,
              },
          ],
          "total_entries": 3,
      }
  
imports: from __future__ import annotations
  import pytest
  from airflow.api_connexion.exceptions import EXCEPTIONS_LINK_MAP
  from airflow.models import Log
  from airflow.security import permissions
  from airflow.utils import timezone
  from tests.test_utils.api_connexion_utils import assert_401, create_user, delete_user
  from tests.test_utils.config import conf_vars
  from tests.test_utils.db import clear_db_logs
label_desc: Use image node_id 2 for calling the TestGetEventLogs obj's underlying member method code with example usage: obj.test_order_eventlogs_by_owner(create_log_model, session) without return types