code: def test_get_mxnet_visible_ctx(ctx):
      ctx_l = get_mxnet_visible_ctx()
      for ele_ctx in ctx_l:
          arr = mx.np.array(1.0, ctx=ele_ctx)
          arr.asnumpy()
  
file_path: gluon-nlp/tests/test_utils_misc.py
imports: import pytest
  import tempfile
  import os
  import logging
  import multiprocessing
  import functools
  from pathlib import Path
  import numpy
  import mxnet
  from gluonnlp.utils.misc import download, sha1sum, logging_config, get_mxnet_visible_ctx, logerror
label_desc: Use image node_id 7 for calling a global function with example usage: test_get_mxnet_visible_ctx(ctx) without return types