def SetUpMapperOrReducer(name, mr_type, url, mr_file, tmpdir):
  if mr_type == 'url':
    app.logger.info('Download %s from: %s', name, url)
    mr_local = DownloadFile(url, tmpdir)
  elif mr_type == 'file':
    if not mr_file:
      raise FileError('%s not uploaded' % name)
    mr_local = SaveUploadedFile(mr_file, tmpdir)
  else:
    # Identity mapper/reducer.
    mr_local = 'cat'

  return mr_local
Attribute : MayaName NameIndex
dataset/ETHPy150Open GoogleCloudPlatform/Data-Pipeline/app/static/hadoop_scripts/rpc_daemon/__main__.py/SetUpMapperOrReducer--crossover with--dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.5/extras/completion/py/pymel/util/nameparse.py/NodeAttributeNameParser.p_nodeattr