code: def model_metrics(
      self, model=None, frame=None, timeoutSecs=60, **kwargs
  ):
      if model is None and frame is None:
          result = self.__do_json_request(
              "/3/ModelMetrics", cmd="get", timeout=timeoutSecs
          )
      elif model is not None and frame is not None:
          result = self.__do_json_request(
              "/3/ModelMetrics/models/" + model + "/frames/" + frame,
              cmd="get",
              timeout=timeoutSecs,
          )
      else:
          raise ValueError(
              "model_metrics can't yet handle the filter case"
          )
      return result
  
imports: import sys, os, getpass, logging, time, inspect, requests, json, pprint
  import h2o_test_utils
  from h2o_test_utils import log, log_rest
  import h2o_print
label_desc: Use image node_id 29 for calling the H2O obj's underlying member method code with example usage: obj.model_metrics(model, frame, timeoutSecs) and returns: result