code: def num_row(self):
      return ivy.shape(self.data)[0]
  
file_path: ivy/ivy/functional/frontends/xgboost/core.py
imports: import ivy
  from ivy.func_wrapper import with_unsupported_dtypes
  from .gbm import GBLinear
label_desc: Use image node_id 2 for calling the DMatrix obj's underlying member method code with example usage: obj.num_row() and returns: ivy