def to_alu_hlu_map(input_str):
ret = {}<EOL>if input_str is not None:<EOL><INDENT>pattern = re.compile(r'<STR_LIT>')<EOL>for line in input_str.split('<STR_LIT:\n>'):<EOL><INDENT>line = line.strip()<EOL>if len(line) == <NUM_LIT:0>:<EOL><INDENT>continue<EOL><DEDENT>matched = re.search(pattern, line)<EOL>if matched is None or len(matched.groups()) < <NUM_LIT:2>:<EOL><INDENT>continue<EOL><DEDENT>else:<EOL><INDENT>hlu = matched.group(<NUM_LIT:1>)<EOL>alu = matched.group(<NUM_LIT:2>)<EOL>ret[int(alu)] = int(hlu)<EOL><DEDENT><DEDENT><DEDENT>return ret<EOL>
Converter for alu hlu map

    Convert following input into a alu -> hlu map:
    Sample input:

    ```
      HLU Number     ALU Number
      ----------     ----------
        0               12
        1               23
    ```

    ALU stands for array LUN number
    hlu stands for host LUN number
    :param input_str: raw input from naviseccli
    :return: alu -> hlu map