You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: channel.rb
    path of file: ./repos/uyuni/testsuite/features/support/namespaces
    
    the code of the file until where you have to start completion: # Copyright (c) 2022-2024 SUSE LLC.
# Licensed under the terms of the MIT license.

# Channel namespace
class NamespaceChannel
  ##
  # Initializes the NamespaceChannelSoftware class.
  #
  # Args:
  #   api_test: This is the test object that is passed in from the test script.
  def initialize(api_test)
    @test = api_test
    @softwar
    
  def list_all_channels
    channels = @test.call('channel.listAllChannels', sessionKey: @test.token)

    mapped_channels =
      channels.map do |channel|
        [
          channel['label'],
          {
            'id' => channel['id'],
            'name' => channel['name'],
            'provider_name' => channel['provider_name'],
            'packages' => channel['packages'],
            'systems' => channel['systems'],
            'arch_name' => channel['arch_name']
          }
        ]
      end
    mapped_channels.to_h
  end