code: def test_translate_architecture_to_assignment(self):
      algorithm = harmonica.Harmonica(
          test_utils.create_spec(
              phoenix_spec_pb2.PhoenixSpec.DNN,
              blocks_to_use=[
                  "FIXED_CHANNEL_CONVOLUTION_16",
                  "FIXED_CHANNEL_CONVOLUTION_32",
                  "FIXED_CHANNEL_CONVOLUTION_64",
                  "CONVOLUTION_3X3",
              ],
              min_depth=4,
          )
      )
      assignment = (
          algorithm.translate_architecture_to_feature_assignment(
              np.array([2, 3, 4])
          )
      )
      self.assertAllEqual(
          [-1, 1, -1, -1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1, -1, -1],
          assignment,
      )
  
file_path: model_search/model_search/search/harmonica_test.py
imports: from absl.testing import parameterized
  import mock
  from model_search import hparam
  from model_search.metadata import trial
  from model_search.proto import phoenix_spec_pb2
  from model_search.search import harmonica
  from model_search.search import test_utils
  import numpy
  import tensorflow.compat.v2
label_desc: Use image node_id 2 for calling the HarmonicaTest obj's underlying member method code with example usage: obj.test_translate_architecture_to_assignment() without return types