docstr: Fetches a dataset by ID.
  
  Args:
      dataset_id: Dataset ID.
  
  Returns:
      The dataset with the given dataset id.
  
  Examples:
      >>> client = ApiWorkflowClient(token="MY_AWESOME_TOKEN")
      >>> client.create_dataset("your-dataset-name", dataset_type=DatasetType.IMAGES)
      >>> dataset_id = client.dataset_id
      >>> client.get_dataset_by_id(dataset_id=dataset_id)
      {'created_at': 1685009504596,
       'datasource_processed_until_timestamp': 1685009513,
       'datasources': ['646f346004d77b4e1424e67e', '646f346004d77b4e1424e695'],
       'id': '646f34608a5613b57d8b73c9',
       'img_type': 'full',
       'type': 'Images',
       ...}
docstr_tok: ["Fetches","a","dataset","by","ID",".","Args",":","dataset_id",":","Dataset","ID",".","Returns",":","The","dataset","with","the","given","dataset","id",".","Examples",":",">",">",">","client","=","ApiWorkflowClient","(","token=","''","MY_AWESOME_TOKEN","''",")",">",">",">","client.create_dataset","(","``","your-dataset-name","''",",","dataset_type=DatasetType.IMAGES",")",">",">",">","dataset_id","=","client.dataset_id",">",">",">","client.get_dataset_by_id","(","dataset_id=dataset_id",")","{","'created_at","'",":","1685009504596",",","'datasource_processed_until_timestamp","'",":","1685009513",",","'datasources","'",":","[","'646f346004d77b4e1424e67e","'",",","'646f346004d77b4e1424e695","'","]",",","'id","'",":","'646f34608a5613b57d8b73c9","'",",","'img_type","'",":","'full","'",",","'type","'",":","'Images","'",",","...","}"]
code: def get_dataset_by_id(self, dataset_id: str) -> DatasetData:
      """Fetches a dataset by ID.
  
      Args:
          dataset_id: Dataset ID.
  
      Returns:
          The dataset with the given dataset id.
  
      Examples:
          >>> client = ApiWorkflowClient(token="MY_AWESOME_TOKEN")
          >>> client.create_dataset("your-dataset-name", dataset_type=DatasetType.IMAGES)
          >>> dataset_id = client.dataset_id
          >>> client.get_dataset_by_id(dataset_id=dataset_id)
          {'created_at': 1685009504596,
           'datasource_processed_until_timestamp': 1685009513,
           'datasources': ['646f346004d77b4e1424e67e', '646f346004d77b4e1424e695'],
           'id': '646f34608a5613b57d8b73c9',
           'img_type': 'full',
           'type': 'Images',
           ...}
      """
      dataset: DatasetData = self._datasets_api.get_dataset_by_id(
          dataset_id
      )
      return dataset
  
imports: import warnings
  from itertools import chain
  from typing import Iterator, List, Optional, Set
  from lightly.api import utils
  from lightly.openapi_generated.swagger_client.models import CreateEntityResponse, DatasetCreateRequest, DatasetData, DatasetType
  from lightly.openapi_generated.swagger_client.rest import ApiException
label_desc: Use image node_id 5 for calling the _DatasetsMixin obj's underlying member method code with example usage: obj.get_dataset_by_id(dataset_id) and returns: dataset