code: def create_spec(
      problem_type,
      complexity_thresholds=None,
      max_depth=None,
      min_depth=None,
      blocks_to_use=None,
  ):
      """Creates a phoenix_spec_pb2.PhoenixSpec with the given options."""
      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
      if blocks_to_use:
          output.blocks_to_use[:] = blocks_to_use
      return output
  
imports: import collections
  import numpy
  from model_search.proto import phoenix_spec_pb2
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, blocks_to_use) and returns: output