code: def convert_args_to_laid_out_tensors(xs):
    
    ret = []
    for x in xs:
      if hasattr(x, "to_laid_out_tensor"):
        ret.append(x.to_laid_out_tensor())
      else:
        ret.append(x)
    return ret
docs: Convert list elements to laid-out-tensors when possible.
  
    Args:
      xs: a list
    Returns:
      a list