code: def _get_custom_optimizer_parent_class():
      from pkg_resources import parse_version
  
      if parse_version(tf.__version__) >= parse_version("2.9.0"):
          custom_optimizer_parent_class = (
              tf.keras.optimizers.legacy.Optimizer
          )
      else:
          custom_optimizer_parent_class = tf.keras.optimizers.Optimizer
  
      return custom_optimizer_parent_class
  
imports: import logging
  import operator
  import os
  import shutil
  import sys
  from itertools import chain
  import numpy
  import tensorflow
  import tensorflow.keras.backend
  import wandb
  from wandb.sdk.integration_utils.data_logging import ValidationDataLogger
  from wandb.sdk.lib.deprecate import Deprecated, deprecate
  from wandb.util import add_import_hook
label_desc: Use image node_id 11 for calling a global function with example usage: _get_custom_optimizer_parent_class() and returns: custom_optimizer_parent_class