code: def _tile2latent_indices(
      tile_row,
      tile_col,
      tile_width,
      tile_height,
      tile_row_overlap,
      tile_col_overlap,
  ):
      """Given a tile row and column numbers returns the range of latents affected by that tiles in the overall image
  
      Returns a tuple with:
          - Starting coordinates of rows in latent space
          - Ending coordinates of rows in latent space
          - Starting coordinates of columns in latent space
          - Ending coordinates of columns in latent space
      """
      (
          px_row_init,
          px_row_end,
          px_col_init,
          px_col_end,
      ) = _tile2pixel_indices(
          tile_row,
          tile_col,
          tile_width,
          tile_height,
          tile_row_overlap,
          tile_col_overlap,
      )
      return _pixel2latent_indices(
          px_row_init, px_row_end, px_col_init, px_col_end
      )
  
imports: import inspect
  from copy import deepcopy
  from enum import Enum
  from typing import List, Optional, Tuple, Union
  import torch
  from tqdm.auto import tqdm
  from diffusers.models import AutoencoderKL, UNet2DConditionModel
  from diffusers.pipeline_utils import DiffusionPipeline
  from diffusers.pipelines.stable_diffusion import StableDiffusionSafetyChecker
  from diffusers.schedulers import DDIMScheduler, LMSDiscreteScheduler, PNDMScheduler
  from diffusers.utils import logging
label_desc: Use image node_id 3 for calling a global function with example usage: _tile2latent_indices(tile_row, tile_col, tile_width, tile_height, tile_row_overlap, tile_col_overlap) and returns: _pixel2latent_indices