class_docstr: A Block serves as the foundation class for all graph-based optimization techniques.
class_docstr_tok: ["A","Block","serves","as","the","foundation","class","for","all","graph-based","optimization","techniques","."]
code: def n_input(self, n_input: int) -> None:
      if not isinstance(n_input, int):
          raise e.TypeError("`n_input` should be an integer")
      if n_input <= 0:
          raise e.ValueError("`n_input` should be > 0")
  
      self._n_input = n_input
  
imports: import opytimizer.utils.exception
label_desc: Use image node_id 8 for calling the Block obj's underlying member method code with example usage: obj.n_input(n_input) without return types