code: def test_hierarchy():
      base = EngineBase(name="nodename")
      base._hierarchy = "some.history.behind"
  
      assert base.name == "nodename"
      assert base.fullname == "some.history.behind.nodename"
  
file_path: nipype/nipype/pipeline/engine/tests/test_base.py
imports: import pytest
  from ..base import EngineBase
  from ....interfaces import base
  from ....interfaces import utility
  from ...None import engine
label_desc: Use image node_id 3 for calling a global function with example usage: test_hierarchy() without return types