@staticmethod<EOL><INDENT>def _generate_docker_image_version(layers, runtime):<DEDENT>
<EOL>return runtime + '<STR_LIT:->' + hashlib.sha256(<EOL>"<STR_LIT:->".join([layer.name for layer in layers]).encode('<STR_LIT:utf-8>')).hexdigest()[<NUM_LIT:0>:<NUM_LIT>]<EOL>
Generate the Docker TAG that will be used to create the image

Parameters
----------
layers list(samcli.commands.local.lib.provider.Layer)
    List of the layers

runtime str
    Runtime of the image to create

Returns
-------
str
    String representing the TAG to be attached to the image