code: def _parse_concept_uri(uri: str) -> tuple[str, str, str]:
      """Extract language, term, and sense from a ConceptNet "concept" URI."""
      if not uri.startswith("/c/"):
          raise ValueError(f"invalid concept uri: {uri}")
      uri = _split_uri(uri)
      if len(uri) == 3:
          _, lang, term = uri
          sense = None
      elif len(uri) == 4:
          _, lang, term, sense = uri
      elif len(uri) > 4:
          _, lang, term, sense, *_ = uri
      elif len(uri) < 3:
          raise ValueError(f"not enough parts in uri: {uri}")
      term = term.replace("_", " ")
      return lang, term, sense
  
imports: from __future__ import annotations
  import collections
  import logging
  from typing import ClassVar, Optional
  from spacy.tokens import Span, Token
  from tqdm import tqdm
  from ..None import constants
  from ..None import io
  from ..None import types, utils
  from .base import Resource
label_desc: Use image node_id 2 for calling a global function with example usage: _parse_concept_uri(uri) and returns: lang,  term,  sense