code: def test_get_datasets_info(
      include_competitions, include_data_modalities
  ):
      dataset_output_features = (
          ludwig.datasets.get_datasets_output_features(
              include_competitions=include_competitions,
              include_data_modalities=include_data_modalities,
          )
      )
  
      assert len(dataset_output_features) > 1
      assert isinstance(dataset_output_features, dict)
      assert dataset_output_features["twitter_bots"].get("name", None)
      assert dataset_output_features["twitter_bots"].get(
          "output_features", None
      )
      assert isinstance(
          dataset_output_features["twitter_bots"]["output_features"],
          list,
      )
      assert dataset_output_features["twitter_bots"]["output_features"][
          0
      ].get("name", None)
      assert dataset_output_features["twitter_bots"]["output_features"][
          0
      ].get("type", None)
  
      if include_competitions:
          assert dataset_output_features["titanic"].get("name", None)
      else:
          assert dataset_output_features.get("titanic", None) is None
  
      if include_data_modalities:
          data_modalities = dataset_output_features["twitter_bots"].get(
              "data_modalities", None
          )
          assert data_modalities
          assert len(data_modalities) >= 1
      else:
          assert (
              dataset_output_features["twitter_bots"].get(
                  "data_modalities", None
              )
              is None
          )
  
      dataset_output_features = (
          ludwig.datasets.get_datasets_output_features(
              dataset="twitter_bots"
          )
      )
      assert len(dataset_output_features["output_features"]) == 1
      assert dataset_output_features["name"] == "twitter_bots"
  
file_path: ludwig/tests/ludwig/datasets/test_datasets.py
imports: import io
  import os
  import uuid
  from unittest import mock
  import pandas
  import pytest
  import ludwig.datasets
  from ludwig.api import LudwigModel
  from ludwig.datasets.dataset_config import DatasetConfig
  from ludwig.datasets.loaders.dataset_loader import DatasetState
  from tests.integration_tests.utils import private_test
label_desc: Use image node_id 3 for calling a global function with example usage: test_get_datasets_info(include_competitions, include_data_modalities) without return types