class_docstr: String representation of the data at every tick.
class_docstr_tok: ["String","representation","of","the","data","at","every","tick","."]
docstr: Convert text values into utf-8 or ascii strings.
docstr_tok: ["Convert","text","values","into","utf-8","or","ascii","strings","."]
code: def _text(value):
      """Convert text values into utf-8 or ascii strings."""
      if isinstance(value, bytes):
          value = value.decode(encoding="utf-8")
      elif not isinstance(value, str):
          value = str(value)
      return value
  
imports: from collections import OrderedDict
  import dateutil.parser
  import itertools
  import logging
  import numpy
  from matplotlib import _api, ticker, units
label_desc: Use image node_id 4 for calling the StrCategoryFormatter obj's underlying member method code with example usage: obj._text(value) and returns: value