code: def test_benchmark_external_id_index_from_iloc(benchmark):
      N = 1000
      SIZE = 100
      idx = ExternalIdIndex(np.arange(N))
      x = np.random.randint(0, N, size=SIZE)
  
      def f():
          idx.from_iloc(x)
  
      benchmark(f)
  
imports: import pytest
  import numpy
  from stellargraph.core.element_data import ExternalIdIndex
label_desc: Use image node_id 2 for calling a global function with example usage: test_benchmark_external_id_index_from_iloc(benchmark) without return types