code: def _generate_sparsity(
      self, metrics: Dict[str, Dict[str, torch.Tensor]]
  ) -> Dict[str, Dict[str, torch.Tensor]]:
      return generate_sparsity(
          metrics=metrics, target_spaces=self._target_spaces
      )
  
imports: from __future__ import annotations
  from collections import defaultdict
  import logging
  from typing import Dict, List, overload
  import torch
  from torch.optim import Adam
  from .scheduled_pruner import ScheduledPruner
  from .tools import is_active_target, generate_sparsity
  from ..base.compressor import Compressor
  from ..base.target_space import TargetType
  from ..base.wrapper import ModuleWrapper
  from ..utils import Evaluator, _EVALUATOR_DOCSTRING
label_desc: Use image node_id 13 for calling the MovementPruner obj's underlying member method code with example usage: obj._generate_sparsity(metrics) and returns: generate_sparsity