code: def get_targets(self, raw_string):
          # type: (Optional[Text]) -> Dict[Text, Text]
          
          targets = {}
          if raw_string is not None:
              for line in raw_string.splitlines():
                  if line:
                      target, directory = line.split(':', 1)
                      targets[target.strip()] = directory.strip()
          return targets
docs: Extract targets from a string in 'key: value' format.