code: def test_simple_beta_input_validation(self):
      with self.assertRaises(TypeError) as e:
          SimpleBeta(
              target="SPY",
              regression_length=100,
              allowed_missing_percentage=0.5,
          )
      result = str(e.exception)
      expected = (
          r"SimpleBeta\(\) expected a value of type"
          " .*Asset for argument 'target',"
          " but got str instead."
      )
      self.assertRegexpMatches(result, expected)
  
      with self.assertRaises(ValueError) as e:
          SimpleBeta(
              target=self.my_asset,
              regression_length=1,
              allowed_missing_percentage=0.5,
          )
      result = str(e.exception)
      expected = (
          "SimpleBeta() expected a value greater than or equal to 3"
          " for argument 'regression_length', but got 1 instead."
      )
      self.assertEqual(result, expected)
  
      with self.assertRaises(ValueError) as e:
          SimpleBeta(
              target=self.my_asset,
              regression_length=100,
              allowed_missing_percentage=50,
          )
      result = str(e.exception)
      expected = (
          "SimpleBeta() expected a value inclusively between 0.0 and 1.0 "
          "for argument 'allowed_missing_percentage', but got 50 instead."
      )
      self.assertEqual(result, expected)
  
imports: import numpy
  from numpy import arange, full, full_like, nan, where
  from pandas import DataFrame, date_range, Int64Index, Timestamp
  from pandas.util.testing import assert_frame_equal
  from scipy.stats import linregress, pearsonr, spearmanr
  from empyrical.stats import beta_aligned
  from zipline.assets import Equity, ExchangeInfo
  from zipline.errors import IncompatibleTerms, NonExistentAssetInTimeFrame
  from zipline.pipeline import CustomFactor, Pipeline
  from zipline.pipeline.data import USEquityPricing
  from zipline.pipeline.data.testing import TestingDataSet
  from zipline.pipeline.domain import US_EQUITIES
  from zipline.pipeline.engine import SimplePipelineEngine
  from zipline.pipeline.factors import Returns, RollingLinearRegressionOfReturns, RollingPearsonOfReturns, RollingSpearmanOfReturns, SimpleBeta
  from zipline.pipeline.factors.statistical import vectorized_beta, vectorized_pearson_r
  from zipline.pipeline.loaders.frame import DataFrameLoader
  from zipline.pipeline.sentinels import NotSpecified
  from zipline.testing import AssetID, AssetIDPlusDay, check_arrays, make_alternating_boolean_array, make_cascading_boolean_array, parameter_space
  import zipline.testing.fixtures
  from zipline.testing.predicates import assert_equal
  from zipline.utils.numpy_utils import as_column, bool_dtype, datetime64ns_dtype, float64_dtype
label_desc: Use image node_id 8 for calling the StatisticalBuiltInsTestCase obj's underlying member method code with example usage: obj.test_simple_beta_input_validation() without return types