code: def test_disk_dataset_get_legacy_shape_single_shard():
      """Test that get_shape works for legacy disk dataset."""
      # This is the shape of legacy_data
      num_datapoints = 100
      num_features = 10
      num_tasks = 10
  
      current_dir = os.path.dirname(os.path.abspath(__file__))
      # legacy_dataset is a dataset in the legacy format kept around for testing
      # purposes.
      data_dir = os.path.join(current_dir, "legacy_dataset")
      dataset = dc.data.DiskDataset(data_dir)
  
      X_shape, y_shape, w_shape, ids_shape = dataset.get_shape()
      assert X_shape == (num_datapoints, num_features)
      assert y_shape == (num_datapoints, num_tasks)
      assert w_shape == (num_datapoints, num_tasks)
      assert ids_shape == (num_datapoints,)
  
file_path: deepchem/deepchem/data/tests/test_shape.py
imports: import deepchem
  import numpy
  import os
label_desc: Use image node_id 4 for calling a global function with example usage: test_disk_dataset_get_legacy_shape_single_shard() without return types