docstr: Gets data loaders for digit datasets
  
  Args:
      dataset (DigitDataset): dataset name
      data_path (string): root directory of dataset
      num_channels (int): number of channels, defaults to None
  
  Examples::
      >>> data_access, num_channel = DigitDataset.get_access(dataset, data_path)
docstr_tok: ["Gets","data","loaders","for","digit","datasets","Args",":","dataset","(","DigitDataset",")",":","dataset","name","data_path","(","string",")",":","root","directory","of","dataset","num_channels","(","int",")",":","number","of","channels",",","defaults","to","None","Examples",":",":",">",">",">","data_access",",","num_channel","=","DigitDataset.get_access","(","dataset",",","data_path",")"]
code: def get_access(dataset: "DigitDataset", data_path, num_channels=None):
      """Gets data loaders for digit datasets
  
      Args:
          dataset (DigitDataset): dataset name
          data_path (string): root directory of dataset
          num_channels (int): number of channels, defaults to None
  
      Examples::
          >>> data_access, num_channel = DigitDataset.get_access(dataset, data_path)
      """
  
      factories = {
          DigitDataset.MNIST: MNISTDatasetAccess,
          DigitDataset.MNIST_RGB: MNISTDatasetAccess,
          DigitDataset.MNISTM: MNISTMDatasetAccess,
          DigitDataset.USPS: USPSDatasetAccess,
          DigitDataset.USPS_RGB: USPSDatasetAccess,
          DigitDataset.SVHN: SVHNDatasetAccess,
      }
      if num_channels is None:
          num_channels = DigitDataset.get_channel_numbers(dataset)
      tf = DigitDataset.get_digit_transform(dataset, num_channels)
  
      return factories[dataset](data_path, tf), 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 3 for calling the DigitDataset obj's underlying member method code with example usage: obj.get_access(dataset, data_path, num_channels) and returns: factories,  num_channels