code: def test_describes_subscripting_error(some_fig):
      # This test works like test_raises_on_bad_indexed_underscore_property but
      # removes the error raised because the property does not support
      # subscripting.
      # Note that, to raise the error, we try to access the value rather than
      # assign something to it. We have to do this, because Plotly.py tries to
      # access the value to see if it is valid, so the error raised has to do with
      # subscripting and not assignment (even though we are trying to assign it a
      # value).
      raised = False
      try:
          # some_fig.update_traces(text_yo="hey") but without using underscores
          some_fig.data[0].text["yo"]
      except TypeError as e:
          raised = True
          e_correct_substr = e.args[0]
      assert raised
      raised = False
      try:
          some_fig.update_traces(text_yo="hey")
      except ValueError as e:
          raised = True
          print(e.args[0])
          e_substr = error_substr(
              e.args[0],
              """
  
  Invalid value received for the 'text' property of scatter
  
      The 'text' property is a string and must be specified as:
        - A string
        - A number that will be converted to a string
        - A tuple, list, or one-dimensional numpy array of the above
  
  Property does not support subscripting:
  text_yo
  ^^^^""",
          )
          assert (
              (
                  e.args[0].find(
                      """
  Property does not support subscripting:
  text_yo
  ^^^^"""
                  )
                  >= 0
              )
              and (e_substr == e_correct_substr)
          )
      assert raised
  
      # Same as previous test but tests deeper path
      raised = False
      try:
          # go.Figure(go.Scatter()).update_traces(textfont_family_yo="hey") but
          # without using underscores
          some_fig.data[0].textfont.family["yo"]
      except TypeError as e:
          raised = True
          e_correct_substr = e.args[0]
      assert raised
      raised = False
      try:
          go.Figure(go.Scatter()).update_traces(
              textfont_family_yo="hey"
          )
      except ValueError as e:
          raised = True
          e_substr = error_substr(
              e.args[0],
              """
  
  Invalid value received for the 'family' property of scatter.textfont
  
      The 'family' property is a string and must be specified as:
        - A non-empty string
        - A tuple, list, or one-dimensional numpy array of the above
  
  Property does not support subscripting:
  textfont_family_yo
           ^^^^^^""",
          )
          assert (
              (
                  e.args[0].find(
                      """
  Property does not support subscripting:
  textfont_family_yo
           ^^^^^^"""
                  )
                  >= 0
              )
              and (e_substr == e_correct_substr)
          )
      assert raised
  
imports: import plotly.graph_objects
  from _plotly_utils.exceptions import PlotlyKeyError
  import pytest
label_desc: Use image node_id 7 for calling a global function with example usage: test_describes_subscripting_error(some_fig) without return types