code: def get_conn():
      '''
      Return a conn object for the passed VM data
      '''
      vm_ = get_configured_provider()
      driver = get_driver(Provider.DIMENSIONDATA)
  
      region = config.get_cloud_config_value(
           'region', vm_, __opts__
      )
  
      user_id = config.get_cloud_config_value(
          'user_id', vm_, __opts__
      )
      key = config.get_cloud_config_value(
          'key', vm_, __opts__
      )
  
      if key is not None:
          log.debug('DimensionData authenticating using password')
  
      return driver(
          user_id,
          key,
          region=region
      f get_conn():
      '''
      Return a conn object for the passed VM data
      '''
      vm_ = get_configured_provider()
      driver = get_driver(Provider.DIMENSIONDATA)
  
      region = config.get_cloud_config_value(
           'region', vm_, __opts__
      )
  
      user_id = config.get_cloud_config_value(
          'user_id', vm_, __opts__
      )
      key = config.get_cloud_config_value(
          'key', vm_, __opts__
      )
  
      if key is not None:
          log.debug('DimensionData authenticating using password')
  
      return driver(
          user_id,
          key,
          region=region
      )
docs: Return a conn object for the passed VM data