code: def test_all_scopes(device):
      assert isinstance(device, str) or isinstance(
          device, tf.distribute.Strategy
      )
  
file_path: addons/tensorflow_addons/utils/tests/test_utils_test.py
imports: import random
  from packaging.version import Version
  import numpy
  import pytest
  import tensorflow
  from tensorflow_addons.utils import test_utils
label_desc: Use image node_id 2 for calling a global function with example usage: test_all_scopes(device) without return types