code: def _fill_and_verify_parameter_shape(x, n, parameter_label):
    
    try:
      return _fill_shape(x, n)
    except TypeError as e:
      raise base.IncompatibleShapeError("Invalid " + parameter_label + " shape: "
                                        "{}".format(e))
docs: Expands x if necessary into a `n`-D kernel shape and reports errors.