class_docstr: Holds leaves and comments. Can be printed with `str(line)`.
class_docstr_tok: ["Holds","leaves","and","comments",".","Can","be","printed","with","`","str","(","line",")","`","."]
docstr: Return True iff `leaf` is part of a slice with non-trivial exprs.
code: def is_complex_subscript(self, leaf: Leaf) -> bool:
      """Return True iff `leaf` is part of a slice with non-trivial exprs."""
      open_lsqb = self.bracket_tracker.get_open_lsqb()
      if open_lsqb is None:
          return False
  
      subscript_start = open_lsqb.next_sibling
  
      if isinstance(subscript_start, Node):
          if subscript_start.type == syms.listmaker:
              return False
  
          if subscript_start.type == syms.subscriptlist:
              subscript_start = child_towards(subscript_start, leaf)
  
      # When this is moved out of preview, add syms.namedexpr_test directly to
      # TEST_DESCENDANTS in nodes.py
      if Preview.walrus_subscript in self.mode:
          test_decendants = TEST_DESCENDANTS | {syms.namedexpr_test}
      else:
          test_decendants = TEST_DESCENDANTS
      return subscript_start is not None and any(
          n.type in test_decendants for n in subscript_start.pre_order()
      )
  
imports: import itertools
  import math
  from dataclasses import dataclass, field
  from typing import Callable, Dict, Iterator, List, Optional, Sequence, Tuple, TypeVar, Union, cast
  from black.brackets import COMMA_PRIORITY, DOT_PRIORITY, BracketTracker
  from black.mode import Mode, Preview
  from black.nodes import BRACKETS, CLOSING_BRACKETS, OPENING_BRACKETS, STANDALONE_COMMENT, TEST_DESCENDANTS, child_towards, is_docstring, is_import, is_multiline_string, is_one_sequence_between, is_type_comment, is_type_ignore_comment, is_with_or_async_with_stmt, make_simple_prefix, replace_child, syms, whitespace
  from black.strings import str_width
  from blib2to3.pgen2 import token
  from blib2to3.pytree import Leaf, Node
label_desc: Use image node_id 26 for calling the Line obj's underlying member method code with example usage: obj.is_complex_subscript(leaf) and returns: unknown, False, False