docstr: Indicates whether the interface is designed specifically to
  handle the supplied object's type. By default simply checks
  if the object is one of the types declared on the class,
  however if the type is expensive to import at load time the
  method may be overridden.
docstr_tok: ["Indicates","whether","the","interface","is","designed","specifically","to","handle","the","supplied","object","'s","type",".","By","default","simply","checks","if","the","object","is","one","of","the","types","declared","on","the","class",",","however","if","the","type","is","expensive","to","import","at","load","time","the","method","may","be","overridden","."]
code: def applies(cls, obj):
      """
      Indicates whether the interface is designed specifically to
      handle the supplied object's type. By default simply checks
      if the object is one of the types declared on the class,
      however if the type is expensive to import at load time the
      method may be overridden.
      """
      return type(obj) in cls.types
  
imports: import sys
  import warnings
  import numpy
  import param
  from ..None import util
  from ..element import Element
  from ..ndmapping import NdMapping
  from .util import finite_range
label_desc: Use image node_id 2 for calling the Interface obj's underlying member method code with example usage: obj.applies(cls, obj) and returns: unknown