code: def is_slice(node):
      # type: (AstNode) -> bool
      """Returns whether node represents a slice, e.g. `1:2` in `x[1:2]`"""
      # Before 3.9, a tuple containing a slice is an ExtSlice,
      # but this was removed in https://bugs.python.org/issue34822
      return node.__class__.__name__ in ("Slice", "ExtSlice") or (
          node.__class__.__name__ == "Tuple"
          and any(map(is_slice, cast(ast.Tuple, node).elts))
      )
  
imports: import ast
  import collections
  import io
  import sys
  import token
  import tokenize
  from abc import ABCMeta
  from ast import Module, expr, AST
  from typing import Callable, Dict, Iterable, Iterator, List, Optional, Tuple, Union, cast, Any, TYPE_CHECKING
  from six import iteritems
label_desc: Use image node_id 13 for calling a global function with example usage: is_slice(node) and returns: unknown