code: def _get_state_dict(url, dl_kwargs, remove_axes=None):
      if not url.startswith("https"):
          url = f"https://download.pytorch.org/torchaudio/models/{url}"
      dl_kwargs = {} if dl_kwargs is None else dl_kwargs
      state_dict = load_state_dict_from_url(url, **dl_kwargs)
      if remove_axes:
          _remove_aux_axes(state_dict, remove_axes)
      return state_dict
  
imports: from typing import List, Optional, Tuple
  import torch
  from torch import nn, Tensor
  from torchaudio._internal import load_state_dict_from_url
  from torchaudio.models import wav2vec2_model, Wav2Vec2Model, wavlm_model
label_desc: Use image node_id 4 for calling a global function with example usage: _get_state_dict(url, dl_kwargs, remove_axes) and returns: state_dict