code: def seed_params(params, seed):
      """Looks for "seed" keys and sets the value."""
  
      def is_class_param(param):
          return (
              isinstance(param, tuple)
              and inspect.isclass(param[0])
              and isinstance(param[1], dict)
          )
  
      if is_class_param(params):
          return params[0], seed_params(params[1], seed)
  
      if not isinstance(params, dict):
          return params
  
      return {
          name: seed if name == "seed" else seed_params(param, seed)
          for name, param in params.items()
      }
  
imports: from __future__ import annotations
  import inspect
  import math
label_desc: Use image node_id 2 for calling a global function with example usage: seed_params(params, seed) and returns: unknown, unknown, params,  seed_params, params