code: def _get_partitions(obj):
      """Check if any entry has partitions"""
      for name, _ in obj:
          if int(name.split(".")[-2]) > 0:
              return True
      return False
  
file_path: mlens/mlens/metrics/utils.py
imports: from __future__ import division
  import warnings
  import numpy
  from ..utils.exceptions import MetricWarning
label_desc: Use image node_id 2 for calling a global function with example usage: _get_partitions(obj) and returns: False, True