def json_call(json, args=(), kwargs=None):
 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)

def json_call ( json , args = ( ) , kwargs = None ) : 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 )
return a dataset class instance based on a string .