code: def typecheck(obj):
      return hasattr(obj, "__iter__") and not isinstance(obj, str)
  
file_path: scenic/scenic/projects/adversarialtraining/attacks/attack_compute.py
imports: import functools
  import jax
  import jax.numpy
  import ml_collections
  from scenic.projects.adversarialtraining.attacks import attack_losses
  from scenic.projects.adversarialtraining.attacks import attack_methods
  from scenic.projects.adversarialtraining.attacks import attack_transforms
  from scenic.train_lib import lr_schedules
  from scenic.train_lib import optimizers
label_desc: Use image node_id 1 for calling a global function with example usage: typecheck(obj) and returns: unknown