class_docstr: Block Decoder for readability,
  straight from the official TensorFlow repository.
class_docstr_tok: ["Block","Decoder","for","readability",",","straight","from","the","official","TensorFlow","repository","."]
docstr: Encode a block to a string.
  
  Args:
      block (namedtuple): A BlockArgs type argument.
  
  Returns:
      block_string: A String form of BlockArgs.
docstr_tok: ["Encode","a","block","to","a","string",".","Args",":","block","(","namedtuple",")",":","A","BlockArgs","type","argument",".","Returns",":","block_string",":","A","String","form","of","BlockArgs","."]
code: def _encode_block_string(block):
      """Encode a block to a string.
  
      Args:
          block (namedtuple): A BlockArgs type argument.
  
      Returns:
          block_string: A String form of BlockArgs.
      """
      args = [
          "r%d" % block.num_repeat,
          "k%d" % block.kernel_size,
          "s%d%d" % (block.strides[0], block.strides[1]),
          "e%s" % block.expand_ratio,
          "i%d" % block.input_filters,
          "o%d" % block.output_filters,
      ]
      if 0 < block.se_ratio <= 1:
          args.append("se%s" % block.se_ratio)
      if block.id_skip is False:
          args.append("noskip")
      return "_".join(args)
  
imports: import re
  import math
  import collections
  from functools import partial
  import torch
  from torch import nn
  from torch.nn import functional
  from torch.utils import model_zoo
label_desc: Use image node_id 2 for calling the BlockDecoder obj's underlying member method code with example usage: obj._encode_block_string(block) and returns: str