code: def get_epoch_idx(self, batch_id: int) -> int:
      return batch_id // cast(int, self.context._epoch_len)
  
imports: import abc
  import contextlib
  import logging
  import os
  import pathlib
  import pickle
  import random
  import time
  import warnings
  from typing import Any, Callable, Dict, Iterator, List, Optional, Type, Union, cast
  import deepspeed
  import numpy
  import torch
  from deepspeed.runtime import dataloader
  import determined
  from determined import layers, pytorch, util, workload
  from determined.pytorch import deepspeed
  from determined.pytorch import dsat
label_desc: Use image node_id 7 for calling the DeepSpeedTrialController obj's underlying member method code with example usage: obj.get_epoch_idx(batch_id) and returns: unknown