class_docstr: A Node instance is used for composing tree-based structures.
class_docstr_tok: ["A","Node","instance","is","used","for","composing","tree-based","structures","."]
code: def name(self, name: Union[str, int]) -> None:
      if not isinstance(name, (str, int)):
          raise e.TypeError("`name` should be a string or integer")
  
      self._name = name
  
imports: from __future__ import annotations
  from typing import Any, Dict, List, Optional, Union
  import numpy
  import opytimizer.utils.constant
  import opytimizer.utils.exception
label_desc: Use image node_id 5 for calling the Node obj's underlying member method code with example usage: obj.name(name) without return types