code: def register_optim(
      optim_type: _torch.optim.Optimizer,
      diff_optim_type: _typing.Type[DifferentiableOptimizer],
  ) -> None:
      r"""Registers a new optimizer type for use with higher functions.
  
      Args:
          optim_type: the type of a new optimizer, assumed to be an instance of
              ``torch.optim.Optimizer``.
          diff_optim_type: the type of a new differentiable optimizer, assumed to
              be an instance of ``higher.optim.DifferentiableOptimizer`` with
              functionally equivalent logic to ``optim_type``.
      """
      _opt_mapping[optim_type] = diff_optim_type
  
imports: import abc
  import collections
  import copy
  import math
  import typing
  import warnings
  import torch
  from .None import patch
  from .None import utils
label_desc: Use image node_id 5 for calling a global function with example usage: register_optim(optim_type, diff_optim_type) without return types