def _get_task_id_from_xmodule_args(xmodule_instance_args):
 return (xmodule_instance_args.get('task_id', UNKNOWN_TASK_ID) if (xmodule_instance_args is not None) else UNKNOWN_TASK_ID)

def _get_task_id_from_xmodule_args ( xmodule_instance_args ) : return ( xmodule_instance_args . get ( 'task_id' , UNKNOWN_TASK_ID ) if ( xmodule_instance_args is not None ) else UNKNOWN_TASK_ID )
gets task_id from xmodule_instance_args dict .