code: def topk(self) -> int:
      topks = self.get_path(self.topk_path)
      return int(topks[0]) if topks else self.default_topk
  
imports: import re
  import collections.abc
  from typing import Optional
  from nboost.helpers import get_jsonpath, set_jsonpath, JSONTYPES, flatten
  from nboost.exceptions import *
  from nboost import defaults
label_desc: Use image node_id 2 for calling the RequestDelegate obj's underlying member method code with example usage: obj.topk() and returns: unknown