docstr: Gets data loaders for source and target datasets
  
  Args:
      source (DigitDataset): source dataset name
      target (DigitDataset): target dataset name
      data_path (string): root directory of dataset
  
  Examples::
      >>> source_access, target_access, num_channel = DigitDataset.get_source_target(source, target, data_path)
docstr_tok: ["Gets","data","loaders","for","source","and","target","datasets","Args",":","source","(","DigitDataset",")",":","source","dataset","name","target","(","DigitDataset",")",":","target","dataset","name","data_path","(","string",")",":","root","directory","of","dataset","Examples",":",":",">",">",">","source_access",",","target_access",",","num_channel","=","DigitDataset.get_source_target","(","source",",","target",",","data_path",")"]
code: def get_source_target(
      source: "DigitDataset", target: "DigitDataset", data_path
  ):
      """Gets data loaders for source and target datasets
  
      Args:
          source (DigitDataset): source dataset name
          target (DigitDataset): target dataset name
          data_path (string): root directory of dataset
  
      Examples::
          >>> source_access, target_access, num_channel = DigitDataset.get_source_target(source, target, data_path)
      """
      src_n_channels = DigitDataset.get_channel_numbers(source)
      tgt_n_channels = DigitDataset.get_channel_numbers(target)
      num_channels = max(src_n_channels, tgt_n_channels)
      src_access, src_n_channels = DigitDataset.get_access(
          source, data_path, num_channels
      )
      tgt_access, tgt_n_channels = DigitDataset.get_access(
          target, data_path, num_channels
      )
  
      return src_access, tgt_access, num_channels
  
imports: import glob
  import logging
  import os
  from enum import Enum
  import numpy
  import pydicom
  import torch
  from torchvision import datasets, transforms
  from kale.loaddata.dataset_access import DatasetAccess
  from kale.loaddata.mnistm import MNISTM
  from kale.loaddata.multi_domain import MultiDomainAccess, MultiDomainImageFolder
  from kale.loaddata.usps import USPS
  from kale.prepdata.image_transform import get_transform
  from kale.utils.download import download_file_by_url
label_desc: Use image node_id 4 for calling the DigitDataset obj's underlying member method code with example usage: obj.get_source_target(source, target, data_path) and returns: src_access,  tgt_access,  num_channels