code: def maybe_compute_model_size(model):
      """Compute the size of a given model, if it has been built."""
      if model.built:
          params = [math.prod(p.shape) for p in model.trainable_weights]
          return int(np.sum(params))
      return 0
  
imports: import contextlib
  import copy
  import gc
  import math
  import os
  import numpy
  from keras_tuner import backend
  from keras_tuner import errors
  from keras_tuner import utils
  from keras_tuner.api_export import keras_tuner_export
  from keras_tuner.backend import config
  from keras_tuner.backend import keras
  from keras_tuner.engine import base_tuner
  from keras_tuner.engine import tuner_utils
label_desc: Use image node_id 1 for calling a global function with example usage: maybe_compute_model_size(model) and returns: int, int