input: Write a python function to check if given configuration contains port_password and if not, create the configuration by mapping port to password.
  assert check_and_map_port_password({'server_port': [8080, 9090], 'password': 'pass'}) == {'port_password': {'8080': 'pass', '9090': 'pass'}, 'server_port': [8080, 9090], 'password': 'pass'}
  assert check_and_map_port_password({'server_port': 8080, 'password': 'pass'}) == {'port_password': {'8080': 'pass'}, 'server_port': 8080, 'password': 'pass'}
  assert check_and_map_port_password({'port_password': {'8080': 'pass1'}, 'server_port': 8080, 'password': 'pass'}) == {'port_password': {'8080': 'pass1'}, 'server_port': 8080, 'password': 'pass'}
output: def check_and_map_port_password(config):
      if 'port_password' not in config:
          if isinstance(config['server_port'], list):
              port_password = {str(port): config['password'] for port in config['server_port']}
          else:
              port_password = {str(config['server_port']): config['password']}
          config['port_password'] = port_password
      return config