code: def _get_h2o_frame_method_args(op, *args, **kwargs):
      fr_cls = h2o.H2OFrame
      if not hasattr(fr_cls, op):
          raise ValueError(
              "Unimplemented: op <%s> not bound in H2OFrame" % op
          )
      argnames = []
      argdefs = []
      for name, param in inspect.signature(
          getattr(fr_cls, op)
      ).parameters.items():
          if name == "self":
              continue
          if param.kind == inspect._VAR_KEYWORD:
              continue
          argnames.append(name)
          argdefs.append(param.default)
      method_args = list(args) + argdefs[len(args) :]
      for a in kwargs:
          method_args[argnames.index(a)] = kwargs[a]
      return method_args
  
imports: from h2o.utils.compatibility import *
  import dis
  import inspect
  import sys
  from .None import h2o
  from .expr import ExprNode, ASTId
label_desc: Use image node_id 48 for calling a global function with example usage: _get_h2o_frame_method_args(op) and returns: method_args