code: def test_create_from_file_fail(self):
      with tempfile.TemporaryDirectory() as temp_dir:
          test_file = os.path.join(temp_dir, "score_calibration.csv")
          with open(test_file, "w") as f:
              f.write("0.98,0.5\n")
  
          with self.assertRaisesRegex(
              ValueError,
              "Expected empty lines or 3 or 4 parameters per line in score "
              "calibration file, but got 2.",
          ):
              metadata_writer.ScoreCalibration.create_from_file(
                  metadata_writer.ScoreCalibration.transformation_types.LOG,
                  test_file,
              )
  
          with open(test_file, "w") as f:
              f.write("-0.98,0.5,0.34\n")
          with self.assertRaisesRegex(
              ValueError,
              "Expected scale to be a non-negative value, but got -0.98.",
          ):
              metadata_writer.ScoreCalibration.create_from_file(
                  metadata_writer.ScoreCalibration.transformation_types.LOG,
                  test_file,
              )
  
imports: import os
  import tempfile
  from absl.testing import absltest
  from mediapipe.tasks.metadata import metadata_schema_py_generated
  from mediapipe.tasks.python.metadata.metadata_writers import metadata_info
  from mediapipe.tasks.python.metadata.metadata_writers import metadata_writer
  from mediapipe.tasks.python.test import test_utils
label_desc: Use image node_id 2 for calling the ScoreCalibrationTest obj's underlying member method code with example usage: obj.test_create_from_file_fail() without return types