parameters: (text)
return_statement: return text
docstring: Properly encode input text to make it satisfy named URL convention.
  
      Args:
          text: the original string to be encoded.
  
      Return:
          The encoded string
  
      Raises:
          N/A
docstring_summary: Properly encode input text to make it satisfy named URL convention.
docstring_tokens: Properly encode input text to make it satisfy named URL convention .
function: def _encode_uri(text):
      """Properly encode input text to make it satisfy named URL convention.
  
      Args:
          text: the original string to be encoded.
  
      Return:
          The encoded string
  
      Raises:
          N/A
      """
      for c in URL_PATH_RESERVED_CHARSET:
          if c in text:
              text = text.replace(c, URL_PATH_RESERVED_CHARSET[c])
      text = text.replace(NAMED_URL_RES_INNER_DILIMITER, '[%s]' % NAMED_URL_RES_INNER_DILIMITER)
      return text
function_tokens: def _encode_uri ( text ) : for c in URL_PATH_RESERVED_CHARSET : if c in text : text = text . replace ( c , URL_PATH_RESERVED_CHARSET [ c ] ) text = text . replace ( NAMED_URL_RES_INNER_DILIMITER , '[%s]' % NAMED_URL_RES_INNER_DILIMITER ) return text