class_docstr: Test ability to marshall metric protos and invalid input.
class_docstr_tok: ["Test","ability","to","marshall","metric","protos","and","invalid","input","."]
code: def test_invalid_label_visibility(self):
      with self.assertRaises(StreamlitAPIException) as e:
          st.metric("label_test", "123", label_visibility="wrong_value")
      self.assertEqual(
          str(e.exception),
          "Unsupported label_visibility option 'wrong_value'. Valid values are "
          "'visible', 'hidden' or 'collapsed'.",
      )
  
imports: from parameterized import parameterized
  import streamlit
  from streamlit.errors import StreamlitAPIException
  from streamlit.proto.LabelVisibilityMessage_pb2 import LabelVisibilityMessage
  from streamlit.proto.Metric_pb2 import Metric
  from streamlit.type_util import _LOGGER
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 10 for calling the MetricTest obj's underlying member method code with example usage: obj.test_invalid_label_visibility() without return types