code: def test_instantiate_adam(instantiate_func: Any, config: Any) -> None:
      with raises(
          InstantiationException,
          match=r"Error in call to target 'tests\.instantiate\.Adam':\nTypeError\(.*\)",
      ):
          # can't instantiate without passing params
          instantiate_func(config)
  
      adam_params = Parameters([1, 2, 3])
      res = instantiate_func(config, params=adam_params)
      assert res == Adam(params=adam_params)
  
imports: import copy
  import pickle
  import re
  from dataclasses import dataclass
  from functools import partial
  from textwrap import dedent
  from typing import Any, Callable, Dict, List, Optional, Tuple
  from omegaconf import MISSING, DictConfig, ListConfig, MissingMandatoryValue, OmegaConf
  from pytest import fixture, mark, param, raises, warns
  import hydra
  from hydra import version
  from hydra.errors import InstantiationException
  from hydra.test_utils.test_utils import assert_multiline_regex_search
  from hydra.types import ConvertMode, TargetConf
  from tests.instantiate import AClass, Adam, AdamConf, AnotherClass, ArgsClass, ASubclass, BadAdamConf, BClass, CenterCrop, CenterCropConf, Compose, ComposeConf, IllegalType, KeywordsInParamsClass, Mapping, MappingConf, NestedConf, NestingClass, OuterClass, Parameters, Rotation, RotationConf, SimpleClass, SimpleClassDefaultPrimitiveConf, SimpleClassNonPrimitiveConf, SimpleClassPrimitiveConf, SimpleDataClass, Tree, TreeConf, UntypedPassthroughClass, UntypedPassthroughConf, User, add_values, module_function, module_function2, partial_equal, recisinstance
label_desc: Use image node_id 9 for calling a global function with example usage: test_instantiate_adam(instantiate_func, config) without return types