code: def test_validate_dataset_compression_arg_returns_with_same_methods(
      methods: List[str],
  ):
      """
      Parameters
      ----------
      methods: List[str]
          A valid list of methods
  
      Expects
      -------
      * Should validate without error
      * Should not modify the methods arg
      * Should populate memory_allocation with the default
      """
      arg = {"methods": methods}
      validate_arg = validate_dataset_compression_arg(
          arg, memory_limit=10
      )
  
      expected_memory_allocation = default_dataset_compression_arg[
          "memory_allocation"
      ]
  
      assert (
          validate_arg["memory_allocation"]
          == expected_memory_allocation
      )
      assert validate_arg["methods"] == methods
  
imports: from typing import Any, Dict, List, Union
  import warnings
  from itertools import chain
  import numpy
  import pandas
  import sklearn.datasets
  from scipy.sparse import csr_matrix, spmatrix
  from autosklearn.constants import BINARY_CLASSIFICATION, CLASSIFICATION_TASKS, MULTICLASS_CLASSIFICATION, MULTILABEL_CLASSIFICATION, MULTIOUTPUT_REGRESSION, REGRESSION, REGRESSION_TASKS
  from autosklearn.util.data import default_dataset_compression_arg, reduce_dataset_size_if_too_large, reduce_precision, reduction_mapping, subsample, supported_precision_reductions, validate_dataset_compression_arg
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_validate_dataset_compression_arg_returns_with_same_methods(methods) without return types