code: def AmazonCoBuy(name):
      if name == "computers":
          deprecate_class("AmazonCoBuy", "AmazonCoBuyComputerDataset")
          return AmazonCoBuyComputerDataset()
      elif name == "photo":
          deprecate_class("AmazonCoBuy", "AmazonCoBuyPhotoDataset")
          return AmazonCoBuyPhotoDataset()
      else:
          raise ValueError(
              'Dataset name should be "computers" or "photo".'
          )
  
imports: import os
  import numpy
  import scipy.sparse
  from ..None import backend, transforms
  from ..convert import graph
  from .dgl_dataset import DGLBuiltinDataset
  from .utils import _get_dgl_url, deprecate_class, deprecate_property, load_graphs, save_graphs
label_desc: Use image node_id 2 for calling a global function with example usage: AmazonCoBuy(name) and returns: AmazonCoBuyComputerDataset, AmazonCoBuyPhotoDataset