code: def get_workflow_ids_for(brain_or_object):
      
      portal_type = api.get_portal_type(brain_or_object)
      wf_ids = workflow_ids_by_type.get(portal_type, None)
      if wf_ids:
          return wf_ids
  
      workflow_ids_by_type[portal_type] = api.get_workflows_for(brain_or_object)
      return workflow_ids_by_type[portal_type]
docs: Returns a list with the workflow ids bound to the type of the object
      passed in