docstr: Degenerate case: one data point. Just make sure it doesn't explode.
docstr_tok: ["Degenerate","case",":","one","data","point",".","Just","make","sure","it","does","n't","explode","."]
code: def test_one_trial(self):
      """Degenerate case: one data point. Just make sure it doesn't explode."""
      blocks_to_use = np.arange(1, 4)
      architectures = np.array([[1, 2, 1]])
      losses = [1.0]
      best = _get_suggestion(architectures, blocks_to_use, losses)
      # The degenerate model might end up suggesting some empty blocks.
      self.assertLessEqual(best.shape, (3,))
  
imports: from absl.testing import parameterized
  import mock
  from model_search import block_builder
  from model_search import hparam
  from model_search.metadata import trial
  from model_search.proto import phoenix_spec_pb2
  from model_search.search import linear_model
  from model_search.search import test_utils
  import numpy
  import tensorflow.compat.v2
label_desc: Use image node_id 1 for calling the LinearModelTest obj's underlying member method code with example usage: obj.test_one_trial() without return types