code: def json_call(json, args=(), kwargs=None):
      """
      Return a dataset class instance based on a string, tuple or dictionary
  
      .. code-block:: python
  
          iris = json_call('datasets.toy.Iris')
  
      This function works by parsing the string, and calling import and getattr a
      lot. (XXX)
  
      """
      if kwargs is None:
          kwargs = {}
      if isinstance(json, basestring):
          symbol = json_lookup(json)
          return symbol(*args, **kwargs)
      elif isinstance(json, dict):
          raise NotImplementedError(
              "dict calling convention undefined", json
          )
      elif isinstance(json, (tuple, list)):
          raise NotImplementedError(
              "seq calling convention undefined", json
          )
      else:
          raise TypeError(json)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from future import standard_library
  from builtins import str
  from builtins import range
  from past.builtins import basestring
  from past.utils import old_div
  import datetime
  import numpy
  import logging
  import os
  import shutil
  import numpy
  from .None import pyll
  from contextlib import contextmanager
label_desc: Use image node_id 4 for calling a global function with example usage: json_call(json, args, kwargs) and returns: symbol