code: def set_params(self, params: dict, name: Optional[str] = None):
      if name is None:
          self._run[...] = params
      else:
          self._run[name] = params
  
imports: import os
  import atexit
  import signal
  import threading
  from typing import Optional
  from aim.ext.exception_resistant import exception_resistant
  from aim.sdk.legacy.deprecation_warning import deprecated
  from aim.ext.resource.configs import DEFAULT_SYSTEM_TRACKING_INT
  from aim.ext.resource.tracker import ResourceTracker
  from aim.sdk.repo import Repo
  from aim.sdk.run import Run
label_desc: Use image node_id 5 for calling the Session obj's underlying member method code with example usage: obj.set_params(params, name) without return types