import hashlib


def create_hashname(id1, id2, bins, bins_col, direction, ops):
  """
  Helper function to generate a hash name for the cached filename
  :param id1:
  :param id2:
  :param bins:
  :param bins_col:
  :param direction:
  :param ops:
  :return:
  """
  name = str(id1) + '_' + str(id2) + '_' + str(bins) + '_' + str(bins_col) + '_' + str(direction) + '_' + str(ops)
  return hashlib.md5(name.encode('utf-8')).hexdigest()