code: def _merge_implicit_values(field: dict, implicit_value: dict) -> dict:
      """
      Helper function for `_populate_implicit_field`.
      Takes a user-defined field along with its implicit value, and merges them together.
  
      :param field: JsonAI field with user-defined parameters.
      :param implicit_value: implicit values for the field.
      :return: original field with implicit values merged into it.
      """
      exec(IMPORTS, globals())
      exec(IMPORT_EXTERNAL_DIRS, globals())
      module = eval(field["module"])
  
      if inspect.isclass(module):
          args = list(
              inspect.signature(module.__init__).parameters.keys()
          )[1:]
      else:
          args = module.__code__.co_varnames
  
      for arg in args:
          if "args" not in field:
              field["args"] = implicit_value["args"]
          else:
              if arg not in field["args"]:
                  if arg in implicit_value["args"]:
                      field["args"][arg] = implicit_value["args"][arg]
  
      return field
  
file_path: lightwood/lightwood/api/json_ai.py
imports: import inspect
  from type_infer.dtype import dtype
  from type_infer.base import TypeInformation
  from dataprep_ml import StatisticalAnalysis
  from lightwood.helpers.templating import _consolidate_analysis_blocks, _add_cls_kwarg
  from lightwood.helpers.constants import IMPORTS, IMPORT_EXTERNAL_DIRS
  from lightwood.api.types import JsonAI, ProblemDefinition
  import lightwood.ensemble
  import lightwood.encoder
label_desc: Use image node_id 3 for calling a global function with example usage: _merge_implicit_values(field, implicit_value) and returns: field