def _get_call_class(method):
call_base, call_name = method.split('<STR_LIT:.>', <NUM_LIT:1>)<EOL>mod = __import__('<STR_LIT>'.format(call_base), fromlist=['<STR_LIT>'])<EOL>gen = (getattr(mod, x) for x in dir(mod) if not x.startswith('<STR_LIT:_>'))<EOL>gen = (x for x in gen if type(x) is type and issubclass(x, BaseCall))<EOL>for call_class in gen:<EOL><INDENT>if call_class.method == method:<EOL><INDENT>return call_class<EOL><DEDENT><DEDENT>else:<EOL><INDENT>class GenericCall(BaseCall):<EOL><INDENT>method = '<STR_LIT:.>'.join((call_base, call_name))<EOL><DEDENT>return GenericCall<EOL><DEDENT>
Find the call class for method if it exists else create one.