code: def test_direct_with_no_path(diamond_es):
      error_text = (
          'No relationship from "regions" to "customers" found.'
      )
      with pytest.raises(RuntimeError, match=error_text):
          DirectFeature(
              IdentityFeature(diamond_es["customers"].ww["name"]),
              "regions",
          )
  
      error_text = (
          'No relationship from "customers" to "customers" found.'
      )
      with pytest.raises(RuntimeError, match=error_text):
          DirectFeature(
              IdentityFeature(diamond_es["customers"].ww["name"]),
              "customers",
          )
  
imports: import numpy
  import pandas
  import pytest
  from woodwork.column_schema import ColumnSchema
  from woodwork.logical_types import Datetime
  from featuretools.computational_backends.feature_set import FeatureSet
  from featuretools.computational_backends.feature_set_calculator import FeatureSetCalculator
  from featuretools.feature_base import DirectFeature, Feature, IdentityFeature
  from featuretools.primitives import AggregationPrimitive, Day, Hour, Minute, Month, NMostCommon, Second, TransformPrimitive, Year
  from featuretools.primitives.utils import PrimitivesDeserializer
  from featuretools.synthesis import dfs
  from featuretools.tests.testing_utils import to_pandas
  from featuretools.utils.gen_utils import Library
label_desc: Use image node_id 11 for calling a global function with example usage: test_direct_with_no_path(diamond_es) without return types