code: def autoformat_filter_conv3d(fsize, in_depth, out_depth):
      if isinstance(fsize, int):
          return [fsize, fsize, fsize, in_depth, out_depth]
      elif isinstance(fsize, (tuple, list, tf.TensorShape)):
          if len(fsize) == 3:
              return [fsize[0], fsize[1], fsize[2], in_depth, out_depth]
          else:
              raise Exception(
                  "filter length error: "
                  + str(len(fsize))
                  + ", only a length of 3 is supported."
              )
      else:
          raise Exception("filter format error: " + str(type(fsize)))
  
imports: from __future__ import division, print_function, absolute_import
  import six
  import string
  import random
  import numpy
  import tensorflow.compat.v1
  from tensorflow.python import pywrap_tensorflow
  import tflearn.variables
label_desc: Use image node_id 29 for calling a global function with example usage: autoformat_filter_conv3d(fsize, in_depth, out_depth) and returns: list, list