code: def _operation_to_num_layers(operation):
      splitted_operation = operation.split("_")
      if "x" in splitted_operation[-1]:
          return 1
      return int(splitted_operation[-1])
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow.compat.v1
label_desc: Use image node_id 8 for calling a global function with example usage: _operation_to_num_layers(operation) and returns: int, int