code: def testUpdateConfigWithDefaultsRemoveBaselineModel(self):
      eval_config_pbtxt = """
        model_specs { name: "candidate" }
        model_specs { name: "baseline" is_baseline: true }
        metrics_specs {
          metrics {
            class_name: "MeanLabel"
            threshold {
              value_threshold {
                lower_bound { value: 0.9 }
              }
              change_threshold {
                direction: HIGHER_IS_BETTER
                absolute { value: -1e-10 }
              }
            }
            per_slice_thresholds {
              threshold {
                value_threshold {
                  lower_bound { value: 0.9 }
                }
                change_threshold {
                  direction: HIGHER_IS_BETTER
                  absolute { value: -1e-10 }
                }
              }
            }
            cross_slice_thresholds {
              threshold {
                value_threshold {
                  lower_bound { value: 0.9 }
                }
                change_threshold {
                  direction: HIGHER_IS_BETTER
                  absolute { value: -1e-10 }
                }
              }
            }
          }
          thresholds {
            key: "my_metric"
            value {
              value_threshold {
                lower_bound { value: 0.9 }
              }
              change_threshold {
                direction: HIGHER_IS_BETTER
                absolute { value: -1e-10 }
              }
            }
          }
          per_slice_thresholds {
            key: "my_metric"
            value {
              thresholds {
                threshold {
                  value_threshold {
                    lower_bound { value: 0.9 }
                  }
                  change_threshold {
                    direction: HIGHER_IS_BETTER
                    absolute { value: -1e-10 }
                  }
                }
              }
            }
          }
          cross_slice_thresholds {
            key: "my_metric"
            value {
              thresholds {
                threshold {
                  value_threshold {
                    lower_bound { value: 0.9 }
                  }
                  change_threshold {
                    direction: HIGHER_IS_BETTER
                    absolute { value: -1e-10 }
                  }
                }
              }
            }
          }
        }
      """
      eval_config = text_format.Parse(
          eval_config_pbtxt, config_pb2.EvalConfig()
      )
  
      expected_eval_config_pbtxt = """
        model_specs {}
        metrics_specs {
          metrics {
            class_name: "MeanLabel"
            threshold {
              value_threshold {
                lower_bound { value: 0.9 }
              }
            }
            per_slice_thresholds {
              threshold {
                value_threshold {
                  lower_bound { value: 0.9 }
                }
              }
            }
            cross_slice_thresholds {
              threshold {
                value_threshold {
                  lower_bound { value: 0.9 }
                }
              }
            }
          }
          thresholds {
            key: "my_metric"
            value {
              value_threshold {
                lower_bound { value: 0.9 }
              }
            }
          }
          per_slice_thresholds {
            key: "my_metric"
            value {
              thresholds {
                threshold {
                  value_threshold {
                    lower_bound { value: 0.9 }
                  }
                }
              }
            }
          }
          cross_slice_thresholds {
            key: "my_metric"
            value {
              thresholds {
                threshold {
                  value_threshold {
                    lower_bound { value: 0.9 }
                  }
                }
              }
            }
          }
          model_names: [""]
        }
      """
      expected_eval_config = text_format.Parse(
          expected_eval_config_pbtxt, config_pb2.EvalConfig()
      )
  
      # Only valid when rubber stamping.
      got_eval_config = config_util.update_eval_config_with_defaults(
          eval_config, has_baseline=False, rubber_stamp=True
      )
      self.assertProtoEquals(got_eval_config, expected_eval_config)
  
file_path: model-analysis/tensorflow_model_analysis/utils/config_util_test.py
imports: import tensorflow
  from tensorflow_model_analysis.proto import config_pb2
  from tensorflow_model_analysis.utils import config_util
  from google.protobuf import text_format
label_desc: Use image node_id 10 for calling the ConfigTest obj's underlying member method code with example usage: obj.testUpdateConfigWithDefaultsRemoveBaselineModel() without return types