code: def _parse_local_version(local: str) -> Optional[LocalType]:
      """
      Takes a string like abc.1.twelve and turns it into ("abc", 1, "twelve").
      """
      if local is not None:
          return tuple(
              part.lower() if not part.isdigit() else int(part)
              for part in _local_version_separators.split(local)
          )
      return None
  
imports: import collections
  import itertools
  import re
  from typing import Callable, Optional, SupportsInt, Tuple, Union
  from ._structures import Infinity, InfinityType, NegativeInfinity, NegativeInfinityType
label_desc: Use image node_id 3 for calling a global function with example usage: _parse_local_version(local) and returns: None, tuple