<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def command_load(ctx, config, socket_name, socket_path, answer_yes, detached, colors):
 """Load a tmux workspace from each CONFIG. CONFIG is a specifier for a configuration file. If CONFIG is a path to a directory, tmuxp will search it for ".tmuxp.{yaml,yml,json}". If CONFIG is has no directory component and only a filename, e.g. "myconfig.yaml", tmuxp will search the users's config directory for that file. If CONFIG has no directory component, and only a name with no extension, e.g. "myconfig", tmuxp will search the users's config directory for any file with the extension ".yaml", ".yml", or ".json" that matches that name. If multiple configuration files that match a given CONFIG are found, tmuxp will warn and pick the first one found. If multiple CONFIGs are provided, workspaces will be created for all of them. The last one provided will be attached. The others will be created in detached mode. """

    util.oh_my_zsh_auto_title()

    tmux_options = {
        'socket_name': socket_name,
        'socket_path': socket_path,
        'answer_yes': answer_yes,
        'colors': colors,
        'detached': detached,
    }

    if not config:
        click.echo("Enter at least one CONFIG")
        click.echo(ctx.get_help(), color=ctx.color)
        ctx.exit()

    if isinstance(config, string_types):
        load_workspace(config, **tmux_options)

    elif isinstance(config, tuple):
        config = list(config)
        # Load each configuration but the last to the background
        for cfg in config[:-1]:
            opt = tmux_options.copy()
            opt.update({'detached': True})
            load_workspace(cfg, **opt)

        # todo: obey the -d in the cli args only if user specifies
        load_workspace(config[-1], **tmux_options)