code: def get_bias(wrapper, params_dict):
      if "bias" in params_dict:
          assert params_dict["bias"] is not None
          return params_dict["bias"]
      elif wrapper.is_bias == "Tensor":
          assert getattr(wrapper, "is_register_bias", False)
          return wrapper.bias
      else:
          return None
  
imports: from typing import Dict, Union, Tuple, Callable, Optional
  from collections.abc import Iterable
  from itertools import repeat
  import torch
  import torch.nn
  import torch.nn.functional
  from torch import Tensor
  from .target_space import TargetType
label_desc: Use image node_id 5 for calling a global function with example usage: get_bias(wrapper, params_dict) and returns: params_dict, wrapper, None