class_docstr: This adapter adapts np.ndarray, a list of np.ndarray, and a dict of
  np.ndarray into a tf.keras.utils.Sequence instance.
class_docstr_tok: ["This","adapter","adapts","np.ndarray",",","a","list","of","np.ndarray",",","and","a","dict","of","np.ndarray","into","a","tf.keras.utils.Sequence","instance","."]
code: def __len__(self) -> int:
      # Returns number of batches (keeps last partial batch).
      if self.drop_leftovers:
          return math.floor(self._x_length / self.batch_size)
      else:
          return math.ceil(self._x_length / self.batch_size)
  
file_path: determined/harness/determined/keras/_data.py
imports: import math
  from typing import Any, Dict, List, Optional, Tuple, Union
  import numpy
  import tensorflow
  import determined
  from determined import keras
  from determined.common import check
label_desc: Use image node_id 2 for calling the _ArrayLikeAdapter obj's underlying member method code with example usage: obj.__len__() and returns: math, math