parameters: (layertype)
return_statement: return color
docstring: Define colors for nodes based on the layer type.
docstring_summary: Define colors for nodes based on the layer type.
docstring_tokens: Define colors for nodes based on the layer type .
function: def choose_color_by_layertype(layertype):
      """Define colors for nodes based on the layer type.
      """
      color = '#6495ED'  # Default
      if layertype == 'Convolution' or layertype == 'Deconvolution':
          color = '#FF5050'
      elif layertype == 'Pooling':
          color = '#FF9900'
      elif layertype == 'InnerProduct':
          color = '#CC33FF'
      return color
function_tokens: def choose_color_by_layertype ( layertype ) : color = '#6495ED' # Default if layertype == 'Convolution' or layertype == 'Deconvolution' : color = '#FF5050' elif layertype == 'Pooling' : color = '#FF9900' elif layertype == 'InnerProduct' : color = '#CC33FF' return color