def METHOD_NAME(self, *args, **kwargs):
    state_id = args[-1]
    if len(args) > 1:
        log.warning(f"falling back to {self.base_url} for validator balances {state_id}")
    endpoint = f"/eth/v1/beacon/states/{state_id}/validators"
    # id array if present, and is array of ints
    if "ids" in kwargs and isinstance(kwargs["ids"], list):
        # turn to array of strings
        kwargs['ids'] = [str(i) for i in kwargs['ids']]
        endpoint += f"?id={','.join(kwargs['ids'])}"
    url = self.base_url + endpoint
    response = self.session.get(url, timeout=(5, 30))
    response.raise_for_status()
    return response.json()