code: def test_search_uri_pattern(self, admin_client, session):
      datasets = [
          DatasetModel(
              id=i,
              uri=f"s3://bucket/key_{i}",
          )
          for i in [1, 2]
      ]
      session.add_all(datasets)
      session.commit()
      assert session.query(DatasetModel).count() == 2
  
      uri_pattern = "key_2"
      response = admin_client.get(
          f"/object/datasets_summary?uri_pattern={uri_pattern}"
      )
  
      assert response.status_code == 200
      response_data = response.json
      assert response_data == {
          "datasets": [
              {
                  "id": 2,
                  "uri": "s3://bucket/key_2",
                  "last_dataset_update": None,
                  "total_updates": 0,
              },
          ],
          "total_entries": 1,
      }
  
      uri_pattern = "s3://bucket/key_"
      response = admin_client.get(
          f"/object/datasets_summary?uri_pattern={uri_pattern}"
      )
  
      assert response.status_code == 200
      response_data = response.json
      assert response_data == {
          "datasets": [
              {
                  "id": 1,
                  "uri": "s3://bucket/key_1",
                  "last_dataset_update": None,
                  "total_updates": 0,
              },
              {
                  "id": 2,
                  "uri": "s3://bucket/key_2",
                  "last_dataset_update": None,
                  "total_updates": 0,
              },
          ],
          "total_entries": 2,
      }
  
imports: from __future__ import annotations
  import pendulum
  import pytest
  from dateutil.tz import UTC
  from airflow.datasets import Dataset
  from airflow.models.dataset import DatasetEvent, DatasetModel
  from airflow.operators.empty import EmptyOperator
  from tests.test_utils.asserts import assert_queries_count
  from tests.test_utils.db import clear_db_datasets
label_desc: Use image node_id 6 for calling the TestGetDatasets obj's underlying member method code with example usage: obj.test_search_uri_pattern(admin_client, session) without return types