code: def test_local_outlier_factor(self):
      # Testing a class that inherits from CustomModel and ExposeAttributesFromProxy
      expected = [
          "distance",
          "features",
          "get",
          "_list_fields",
          "nearest_neighbors_model",
          "num_distance_components",
          "num_examples",
          "num_features",
          "num_neighbors",
          "num_unpacked_features",
          "predict",
          "row_label_name",
          "save",
          "scores",
          "show",
          "summary",
          "threshold_distances",
          "training_time",
          "unpacked_features",
          "verbose",
      ]
      sf = turicreate.SFrame(
          {
              "x0": [0.0, 1.0, 1.0, 0.0, 1.0, 0.0, 5.0],
              "x1": [2.0, 1.0, 0.0, 1.0, 2.0, 1.5, 2.5],
          }
      )
      m = turicreate.local_outlier_factor.create(sf, num_neighbors=3)
  
      actual = [x for x in dir(m) if not x.startswith("_")]
      check_visible_modules(actual, expected)
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import unittest
  import turicreate
label_desc: Use image node_id 5 for calling the TabCompleteVisibilityTests obj's underlying member method code with example usage: obj.test_local_outlier_factor() without return types