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 type(self, type: str) -> None:
      if type not in ["input", "inner", "output"]:
          raise e.ValueError(
              "`type` should be `input`, `inner` or `output`"
          )
  
      self._type = type
  
imports: import opytimizer.utils.exception
label_desc: Use image node_id 4 for calling the Block obj's underlying member method code with example usage: obj.type(type) without return types