code: def create_resource_group(access_token, subscription_id, rgname, location):
      '''Create a resource group in the specified location.
  
      Args:
          access_token (str): A valid Azure authentication token.
          subscription_id (str): Azure subscription id.
          rgname (str): Azure resource group name.
          location (str): Azure data center location. E.g. westus.
  
      Returns:
          HTTP response. JSON body.
      '''
      endpoint = ''.join([get_rm_endpoint(),
                          '/subscriptions/', subscription_id,
                          '/resourcegroups/', rgname,
                          '?api-version=', RESOURCE_API])
      rg_body = {'location': location}
      body = json.dumps(rg_body)
      return do_put(endpoint, body, access_tokenf create_resource_group(access_token, subscription_id, rgname, location):
      '''Create a resource group in the specified location.
  
      Args:
          access_token (str): A valid Azure authentication token.
          subscription_id (str): Azure subscription id.
          rgname (str): Azure resource group name.
          location (str): Azure data center location. E.g. westus.
  
      Returns:
          HTTP response. JSON body.
      '''
      endpoint = ''.join([get_rm_endpoint(),
                          '/subscriptions/', subscription_id,
                          '/resourcegroups/', rgname,
                          '?api-version=', RESOURCE_API])
      rg_body = {'location': location}
      body = json.dumps(rg_body)
      return do_put(endpoint, body, access_token)
docs: Create a resource group in the specified location.
  
      Args:
          access_token (str): A valid Azure authentication token.
          subscription_id (str): Azure subscription id.
          rgname (str): Azure resource group name.
          location (str): Azure data center location. E.g. westus.
  
      Returns:
          HTTP response. JSON body.