code: def test_lite_feature_assertions():
      f1 = LiteFeature(name="f1", logical_type=Double)
      f2 = LiteFeature(name="f1", logical_type=Double, df_id="df1")
  
      assert f1 != f2
  
      with pytest.raises(
          TypeError,
          match="Name must be given if origin feature",
      ):
          LiteFeature(logical_type=Double)
  
      with pytest.raises(
          TypeError,
          match="Logical Type must be given if origin feature",
      ):
          LiteFeature(name="f1")
  
      with pytest.raises(
          ValueError,
          match="primitive input must be of type PrimitiveBase",
      ):
          LiteFeature(
              name="f3", primitive="AddNumeric", base_features=[f1, f2]
          )
  
      f = LiteFeature("f4", logical_type=Double)
      with pytest.raises(AttributeError, match="name is immutable"):
          f.name = "new name"
  
      with pytest.raises(
          ValueError, match="only used on multioutput features"
      ):
          f.non_indexed_name
  
      with pytest.raises(
          AttributeError, match="logical_type is immutable"
      ):
          f.logical_type = Boolean
  
      with pytest.raises(AttributeError, match="tags is immutable"):
          f.tags = {"other"}
  
      with pytest.raises(
          AttributeError, match="primitive is immutable"
      ):
          f.primitive = AddNumeric
  
      with pytest.raises(
          AttributeError, match="base_features are immutable"
      ):
          f.base_features = [f1]
  
      with pytest.raises(AttributeError, match="df_id is immutable"):
          f.df_id = "df_id"
  
      with pytest.raises(AttributeError, match="id is immutable"):
          f.id = "id"
  
      with pytest.raises(
          AttributeError, match="n_output_features is immutable"
      ):
          f.n_output_features = "n_output_features"
  
      with pytest.raises(AttributeError, match="depth is immutable"):
          f.depth = "depth"
  
      with pytest.raises(AttributeError, match="idx is immutable"):
          f.idx = "idx"
  
imports: import json
  from unittest.mock import patch
  import pytest
  from woodwork.logical_types import Boolean, Double
  from featuretools.feature_discovery.feature_discovery import generate_features_from_primitives, schema_to_features
  from featuretools.feature_discovery.FeatureCollection import FeatureCollection
  from featuretools.feature_discovery.LiteFeature import LiteFeature
  from featuretools.primitives import Absolute, AddNumeric, DivideNumeric, Lag, MultiplyNumeric
  from featuretools.tests.feature_discovery.test_feature_discovery import MultiOutputPrimitiveForTest
  from featuretools.tests.testing_utils.generate_fake_dataframe import generate_fake_dataframe
label_desc: Use image node_id 9 for calling a global function with example usage: test_lite_feature_assertions() without return types