code: def get_resource_query_session_for_bin(self, bin_id, proxy):
          
          if not self.supports_resource_query():
              raise errors.Unimplemented()
          ##
          # Also include check to see if the catalog Id is found otherwise raise errors.NotFound
          ##
          # pylint: disable=no-member
          return sessions.ResourceQuerySession(bin_id, proxy, self._runtime)
docs: Gets a resource query session for the given bin.
  
          arg:    bin_id (osid.id.Id): the ``Id`` of the bin
          arg:    proxy (osid.proxy.Proxy): a proxy
          return: (osid.resource.ResourceQuerySession) - ``a
                  ResourceQuerySession``
          raise:  NotFound - ``bin_id`` not found
          raise:  NullArgument - ``bin_id`` or ``proxy`` is ``null``
          raise:  OperationFailed - ``unable to complete request``
          raise:  Unimplemented - ``supports_resource_query()`` or
                  ``supports_visible_federation()`` is ``false``
          *compliance: optional -- This method must be implemented if
          ``supports_resource_query()`` and
          ``supports_visible_federation()`` are ``true``.*