def get_categories_info(categories_id, doc):
  """Get object name from category id
  """
  for cate_infor in doc['categories']:
    if categories_id == cate_infor['id']:
      return cate_infor['name']
  return None