<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _namespace_to_ord(namespace):
 """Converts a namespace string into an int representing its lexographic order. '' 1 2 Args: namespace: A namespace string. Returns: An int representing the lexographical order of the given namespace string. """

  n = 0
  for i, c in enumerate(namespace):
    n += (_LEX_DISTANCE[MAX_NAMESPACE_LENGTH - i- 1] *
          NAMESPACE_CHARACTERS.index(c)
          + 1)
  return n