code: def update_params(params, categoricals, constants):
      """
      Update params with categoricals and constants for the fitting proces.
  
      params: params proposed by the tuner
  
      Examples of the format for SVM sigmoid hyperpartition:
  
      categoricals = (('kernel', 'poly'),
                      ('probability', True),
                      ('_scale', True))
  
      constants = [('cache_size', 15000)]
      """
      for key, value in categoricals + constants:
          params[key] = value
  
      return params
  
imports: from __future__ import absolute_import, unicode_literals
  import base64
  import hashlib
  import json
  import logging
  import os
  import pickle
  from builtins import str
  import numpy
  from atm.compat import getargs
label_desc: Use image node_id 8 for calling a global function with example usage: update_params(params, categoricals, constants) and returns: params