code: def test__get_optimizer():
      optim = trainer._get_optimizer(tf.optimizers.Adam)()
      assert isinstance(optim, tf.optimizers.Adam)
  
file_path: chitra/tests/test_trainer.py
imports: from unittest.mock import MagicMock
  import numpy
  import pytest
  import tensorflow
  from tensorflow import keras
  from chitra.trainer import Dataset, InterpretModel, Trainer, create_cnn
label_desc: Use image node_id 10 for calling a global function with example usage: test__get_optimizer() without return types