code: def get_tuple_type_str_parts(s: str) -> Optional[Tuple[str, Optional[str]]]:
      
      match = TUPLE_TYPE_STR_RE.match(s)
  
      if match is not None:
          tuple_prefix = match.group(1)
          tuple_dims = match.group(2)
  
          return tuple_prefix, tuple_dims
  
      return None
docs: Takes a JSON ABI type string.  For tuple type strings, returns the separated
      prefix and array dimension parts.  For all other strings, returns ``None``.