class_docstr: The base class for 3d pooling layers.
      
class_docstr_tok: ["The","base","class","for","3d","pooling","layers","."]
docstr: Sets the filter size.
          
code: def filter_size(self, filter_size):
      """Sets the filter size."""
      if len(filter_size) != 3:
          raise ValueError(
              "The `filter_size` must contain three values (h, w, d)."
          )
  
      if (
          int(filter_size[0]) < 1
          or int(filter_size[1]) < 1
          or int(filter_size[2]) < 1
      ):
          raise ValueError(
              "`filter_size` must contain positive values."
          )
  
      self._internal.set_filter_height(int(filter_size[0]))
      self._internal.set_filter_width(int(filter_size[1]))
      self._internal.set_filter_depth(int(filter_size[2]))
  
imports: import neoml.PythonWrapper
  from .Dnn import Layer
  from neoml.Utils import check_input_layers
label_desc: Use image node_id 3 for calling the Pooling3D obj's underlying member method code with example usage: obj.filter_size(filter_size) without return types