def make_array_or_function_string(cell):
    """
    Either selects an array element at random, or
    create the faker function string, depending on the input format
    """
    if (cell.startswith('[') and cell.endswith(']')):
        return cell[1:-1].split(' | ') # Removes the brackets before split

    if (cell.startswith('{') and cell.endswith('}')):
        return cell[1:-1]

    return 'FAKE.' + cell