<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _index_and_mapping(self, namespace):
 """Helper method for getting the index and type from a namespace."""

        index, doc_type = namespace.split(".", 1)
        return index.lower(), doc_type