<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_html_file(config):
 """ You can customize the automated documentation by altering the code directly in this script or the associated jinja2 template """

    logging.debug("Starting create_html_file")
    logging.debug(
        "\tjinja2_template_file = {}"
        .format(config['jinja2_template_filename']))
    logging.debug(
        "\ttrendered_filename = {}"
        .format(config['rendered_filename']))

    ts = time.time()
    timestamp = datetime.datetime.utcfromtimestamp(ts).strftime(
        '%Y-%m-%d %H:%M:%S')
    script_path = os.path.dirname(os.path.abspath(__file__))
    rendered_file_path = os.path.join(
        script_path, config['rendered_filename'])
    environment = jinja2.Environment(
        loader=jinja2.FileSystemLoader(script_path))

    environment_column = True if config['environment_tags'] else False

    render_vars = {
        "timestamp": timestamp,
        "c7n_data": c7n_data,
        "environment_column": environment_column,
        "environment_tags": config['environment_tags']
    }

    with open(rendered_file_path, "w") as result_file:
        result_file.write(
            environment.get_template(config['jinja2_template_filename'])
            .render(render_vars))

    logging.debug("File created: %s", rendered_file_path)

    return rendered_file_path