code: def _do_modelTestSingleLayer(
      self,
      input_data,
      output_layer,  # a keras layer
      functional_api=True,
      random_weights=True,
      dump_weights=False,
      is_training=False,
      rtol=1e-6,
      atol=1e-6,
  ):
      self.__set_keras_backend("tensorflow")
      keras_model = self.__generate_keras_model(
          functional_api=functional_api,
          input_data=input_data,
          output_layer=output_layer,
      )
      self.modelTest(
          input_data,
          keras_model,
          random_weights=random_weights,
          dump_weights=dump_weights,
          is_training=is_training,
          rtol=rtol,
          atol=atol,
      )
  
imports: from __future__ import print_function
  import numpy
  from keras.models import Sequential, Model
  from keras.layers.core import *
  from keras.layers.convolutional import *
  from keras.layers import Dense, Dropout, Input
  from keras.optimizers import RMSprop
  from bigdl.dllib.utils.common import *
  from bigdl.dllib.keras.converter import *
  from bigdl.dllib.keras.converter import WeightLoader, WeightsConverter
  import numpy
  from unittest import TestCase
  import keras
  from bigdl.dllib.nn.keras.keras_utils import *
label_desc: Use image node_id 12 for calling the BigDLTestCase obj's underlying member method code with example usage: obj._do_modelTestSingleLayer(input_data, output_layer, functional_api, random_weights, dump_weights, is_training, rtol, atol) without return types