code: def test_magnitude_pruner_n_m_ratio_param_usage(options):
      param_name, val = options
      with pytest.raises(Exception):
          MagnitudePrunerConfig.from_dict(
              {"global_config": {"n_m_ratio": [3, 4], param_name: val}},
          )
  
imports: import copy
  from collections import OrderedDict
  import numpy
  import pytest
  import torch
  from coremltools.optimize.torch.pruning import MagnitudePruner, MagnitudePrunerConfig, ModuleMagnitudePrunerConfig
  from coremltools.optimize.torch.pruning._utils import n_m_mask
label_desc: Use image node_id 10 for calling a global function with example usage: test_magnitude_pruner_n_m_ratio_param_usage(options) without return types