code: def remove_space_misc(misc):
      """
      Remove any pieces from misc which are space-related
      """
      if misc is None or misc == "" or misc == "_":
          return misc
      pieces = misc.split("|")
      pieces = [
          x
          for x in pieces
          if x.split("=", maxsplit=1)[0]
          not in ("SpaceAfter", "SpacesAfter", "SpacesBefore")
      ]
      if len(pieces) > 0:
          return "|".join(pieces)
      return None
  
imports: from collections import deque
  import subprocess
  from stanza.models.common.utils import misc_to_space_after
  from stanza.models.constituency.parse_tree import Tree
  from stanza.protobuf import DependencyGraph, FlattenedParseTree
  from stanza.server.client import resolve_classpath
label_desc: Use image node_id 11 for calling a global function with example usage: remove_space_misc(misc) and returns: None, misc, str