code: def get_layers_with_name(net, name="", verbose=False):
      """Get a list of layers' output in a network by a given name scope.
  
      Parameters
      -----------
      net : :class:`Layer`
          The last layer of the network.
      name : str
          Get the layers' output that contain this name.
      verbose : boolean
          If True, print information of all the layers' output
  
      Returns
      --------
      list of Tensor
          A list of layers' output (TensorFlow tensor)
  
      Examples
      ---------
      >>> import tensorlayer as tl
      >>> layers = tl.layers.get_layers_with_name(net, "CNN", True)
  
      """
      logging.info("  [*] geting layers with %s" % name)
  
      layers = []
      i = 0
  
      for layer in net.all_layers:
          # logging.info(type(layer.name))
          if name in layer.name:
              layers.append(layer)
  
              if verbose:
                  logging.info(
                      "  got {:3}: {:15}   {}".format(
                          i, layer.name, str(layer.get_shape())
                      )
                  )
                  i = i + 1
  
      return layers
  
imports: import numpy
  import tensorflow
  from tensorflow.python.ops.rnn_cell import LSTMStateTuple
  import tensorlayer
  from tensorlayer import logging
  from tensorlayer.decorators import deprecated, deprecated_alias
label_desc: Use image node_id 5 for calling a global function with example usage: get_layers_with_name(net, name, verbose) and returns: layers