  def GetOrCreateResourceGroup(self, resource_group_name: str) -> str:
    """Check if a resource group exists, and create it otherwise.

    Args:
      resource_group_name (str); The name of the resource group to check
          existence for. If it does not exist, create it.

    Returns:
      str: The resource group name.
    """
    try:
      self.resource_client.resource_groups.get(resource_group_name)
    except azure_exceptions.CloudError:
      # Group doesn't exist, creating it
      logger.info('Resource group {0:s} not found, creating it.'.format(
          resource_group_name))
      creation_data = {
          'location': self.az_account.default_region
      }
      self.resource_client.resource_groups.create_or_update(
          resource_group_name, creation_data)
      logger.info('Resource group {0:s} successfully created.'.format(
          resource_group_name))
    return resource_group_name
Check if a resource group exists, and create it otherwise.

Args:
resource_group_name (str); The name of the resource group to check
existence for. If it does not exist, create it.

Returns:
str: The resource group name.
libcloudforensics/providers/azure/internal/resource.py