code: def test_type_requirements(requirement):
      """Test algorithms type requirement defined in old requirements API"""
      algo_class = create_algo_class(requires=[requirement])
      requirements = backward.get_algo_requirements(algo_class)
      assert len(requirements) == 3
      assert requirements == {
          "type_requirement": requirement,
          "shape_requirement": None,
          "dist_requirement": None,
      }
  
file_path: orion/tests/unittests/core/utils/test_backward.py
imports: import pytest
  import orion.core.utils.backward
  from orion.algo.base import BaseAlgorithm
label_desc: Use image node_id 2 for calling a global function with example usage: test_type_requirements(requirement) without return types