docstr: Creates a new phoenix.PhoenixSpec for the given problem type.
docstr_tok: ["Creates","a","new","phoenix.PhoenixSpec","for","the","given","problem","type","."]
code: def _create_phoenix_spec(self, problem_type):
      """Creates a new phoenix.PhoenixSpec for the given problem type."""
      spec_path = os.path.join(
          FLAGS.test_srcdir, _SPEC_PATH_TEMPLATE.format(problem_type)
      )
      spec = phoenix_spec_pb2.PhoenixSpec()
      with tf.io.gfile.GFile(spec_path, "r") as f:
          text_format.Merge(f.read(), spec)
      return spec
  
imports: import os
  from absl import flags
  from absl.testing import parameterized
  from model_search import hparam
  from model_search import loss_fns
  from model_search import phoenix
  from model_search.architecture import architecture_utils
  from model_search.metadata import mock_metadata
  from model_search.proto import phoenix_spec_pb2
  import numpy
  import tensorflow.compat.v2
  from google.protobuf import text_format
label_desc: Use image node_id 1 for calling the PhoenixTest obj's underlying member method code with example usage: obj._create_phoenix_spec(problem_type) and returns: spec