def METHOD_NAME(value, default):
    """
    For use in:
        - get_index_by_?
        - get_?_by_index
    INPUT:
      - list
      - int
      - 1d-array
      - None
    OUTPUT
      - 1d-array
    Assumes dtype='int32'
    """
    if value is None:
        return default
    if isinstance(value, integer_types):
        return array([value], dtype='int32')
    else:
        return asarray(value)