code: def __init__(self, text: str = None, is_bold: bool = False):
      super().__init__(text=text)
      self.is_bold = is_bold
  
imports: from collections import defaultdict
  from dataclasses import dataclass
  import pytest
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.data import Token, Vocabulary
  from allennlp.data.token_indexers import SingleIdTokenIndexer
  from allennlp.data.tokenizers import SpacyTokenizer
label_desc: Use image node_id 1 to create a new TokenWithStyle object from inherited base classes: Token with example: obj = TokenWithStyle(text, is_bold)