code: def _create_spec(
      problem_type,
      complexity_thresholds=None,
      max_depth=None,
      min_depth=None,
      disable_last=False,
  ):
      output = phoenix_spec_pb2.PhoenixSpec()
      if complexity_thresholds is not None:
          output.increase_complexity_minimum_trials[
              :
          ] = complexity_thresholds
      if max_depth is not None:
          output.maximum_depth = max_depth
      if min_depth is not None:
          output.minimum_depth = min_depth
      output.problem_type = problem_type
      output.disable_last_dense_layer = disable_last
      return output
  
imports: from absl.testing import parameterized
  from model_search import block_builder
  from model_search import hparam
  from model_search.architecture import architecture_utils
  from model_search.metadata import trial
  from model_search.proto import phoenix_spec_pb2
  from model_search.proto import transfer_learning_spec_pb2
  import numpy
  import tensorflow.compat.v2
label_desc: Use image node_id 1 for calling a global function with example usage: _create_spec(problem_type, complexity_thresholds, max_depth, min_depth, disable_last) and returns: output