code: def get_dataset(
      *, uri: str, session: Session = NEW_SESSION
  ) -> APIResponse:
      """Get a Dataset."""
      dataset = session.scalar(
          select(DatasetModel)
          .where(DatasetModel.uri == uri)
          .options(
              joinedload(DatasetModel.consuming_dags),
              joinedload(DatasetModel.producing_tasks),
          )
      )
      if not dataset:
          raise NotFound(
              "Dataset not found",
              detail=f"The Dataset with uri: `{uri}` was not found",
          )
      return dataset_schema.dump(dataset)
  
file_path: airflow/airflow/api_connexion/endpoints/dataset_endpoint.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  from sqlalchemy import func, select
  from sqlalchemy.orm import joinedload, subqueryload
  from airflow.api_connexion import security
  from airflow.api_connexion.exceptions import NotFound
  from airflow.api_connexion.parameters import apply_sorting, check_limit, format_parameters
  from airflow.api_connexion.schemas.dataset_schema import DatasetCollection, DatasetEventCollection, dataset_collection_schema, dataset_event_collection_schema, dataset_schema
  from airflow.models.dataset import DatasetEvent, DatasetModel
  from airflow.utils.db import get_query_count
  from airflow.utils.session import NEW_SESSION, provide_session
label_desc: Use image node_id 1 for calling a global function with example usage: get_dataset() and returns: dataset_schema